+ 10
How can I horizontally center a <div> within another <div> using CSS (if it's even possible)?
2 Antworten
+ 2
Use flexbox
+ 1
u could set the inner div width as like 80% then add margin-left and margin-right as 10% (half of the remaining percentage)