'Display Grid Image & Text Side by Side
Solution 1:[1]
You just need to add a display: flex property to grid-item class in your CSS. Like this:
.grid-item {
/* border-bottom: thin #edf1f2 solid; */
padding: 22.85px 0px;
display: flex;
align-items: center;
}
Solution 2:[2]
How about using a table?
<table>
<tr>
<td>[image]</td><td>[content]</td>
<td>[image]</td><td>[content]</td>
<td>[image]</td><td>[content]</td>
</tr>
<tr>
<td>[image]</td><td>[content]</td>
<td>[image]</td><td>[content]</td>
<td>[image]</td><td>[content]</td>
</tr>
</table>
You can also put styles inside a table.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Suraj Sanwal |
| Solution 2 | SHKim |

