+ 1
Why padding is not working on outer div.
4 Réponses
+ 5
//Your are writing CSS rules wrong ,it is
padding: 10px; and auto is not a valid value for padding its for margin and other property
0 auto is in margin
+ 2
Sudarshan Rai 👑 it means padding cannot be auto.
Thanks.
+ 1
Jairo Soto i know this trick but i want to know why padding not working.
0
Use margin 0 auto in the inner