Padding CSS problem
-
I put this in my <div>
padding:50px 22px 0 22px;
and WordPress leave 22px, like this
padding:50px 22px 0;
And div is bug, why? :S
The blog I need help with is: (visible only to logged in users)
-
It isn’t a bug.
padding:50px 22px 0 22px; is top, right, bottom, left, and your left and right are both 22pxpadding:50px 22px 0; is top, right/left, bottom and right and left are still 22px because the middle number is for both right AND left.See http://www.w3schools.com/css/css_padding.asp under “Padding – Shorthand property”
-
-
-
- The topic ‘Padding CSS problem’ is closed to new replies.