+ 1

Best way of Horizontal alignment in css

Tell me the best way to use always so that the element is horizontally centre

22nd Jul 2020, 3:58 PM
Dhananjay
Dhananjay - avatar
4 odpowiedzi
+ 3
Dhananjay Give the container display: flex, and justify-content: center
23rd Jul 2020, 6:13 AM
Anna/Аня
Anna/Аня - avatar
+ 1
Use flexboxes
22nd Jul 2020, 4:53 PM
Anna/Аня
Anna/Аня - avatar
+ 1
Use div tag in html along with width and height and then using left ,right ,top, bottom adjust pixel value to align where you want the element to place it.
23rd Jul 2020, 12:58 PM
shubham kumar
shubham kumar - avatar
0
Anna/Аня plz explain
23rd Jul 2020, 6:08 AM
Dhananjay
Dhananjay - avatar