I'm having trouble getting the green "v" mark icon to align with the paragraph text on the same line. The "v" always appears above the paragraph, and this issue arose when I used flex or grid for spacing between the two elements. I've tried using justify-content, align-items, padding-top, but nothing seems to work. Does anyone know how to fix this?
<style>
.content {
background: #3494db;
color: #fff;
width: 65%;
margin: auto;
display: grid;
grid-template-columns: 1fr 1fr;
}
.column1{
color: black;
line-height: 15px;
text-align: right;
margin-top: 5px;
margin-bottom: 10px;
padding-right: 25px;
}
.column2{
color: black;
line-height: 15px;
text-align: right;
margin-top: 5px;
margin-bottom: 10px;
padding-right: 25px;
}
.column1 i {
display: flex;
justify-content: space-between;
margin-left: 10px;
}
.column2 i {
display: flex;
justify-content: space-between;
margin-left: 10px;
}
.column1 p{
border-bottom: 1px #fff solid;
}
.column2 p{
border-bottom: 1px #fff solid;
}
.content i{
color: rgb(50, 230, 50);
font-size: 18px;
}
</style>
</head>
<body>
<div class="content">
<div class="column1">
<p><i class="far fa-check-circle"></i> Free for all</p>
</div>
<div class="column2">
<p> <i class="far fa-check-circle"></i> Free for all</p>
</div>
</div>
</body>
</html>