I used display: flex;
to horizontally align my images but centering them required display: block; margin: auto;
and I can not have two displayed on the same div it does not work for me.
<div style="width: 25%; display: flex;">
<img src="..\pic\5D3M3456.jpg" style="margin: 2vh;">
<img src="..\pic\5D3M3462.jpg" style="margin: 2vh;">
<img src="..\pic\5D3M3520.jpg" style="margin: 2vh;">
</div>
flex has it’s own way of centering things.
One of the reasons that flexbox quickly caught the interest of web developers is that it brought proper alignment capabilities to the web for the first time. It enabled proper vertical alignment, so we can at last easily center a box. In this guide,...
None of the stuff works though (I mean the things in the article)
system
Closed
April 2, 2023, 7:28am
4
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.