+ 1
How can divs (and other elements) be aligned horizontally, rather than vertically, across a webpage?
2 odpowiedzi
+ 5
using CSS , specify your elements' widths and use the float property like this , float:left; or float:right;
this pushes your div left or right of the element before it .
+ 2
Use flexbox display:flex you could align it horizontally or vertically by setting flex-direction: row/column