divs align horizontally code example
Example 1: how to align items in css
div
{
display:flex;
align-items:center;
justify-content:center;
}
Example 2: how to align elements horizontally in css
<div class="row">
<div class="block">Lorem</div>
<div class="block">Ipsum</div>
<div class="block">Dolor</div>
</div>