CSS padding shorthand confusion -


padding:45px 65px 95px; 

why shorthand above set left padding 65px when value left padding not given?

this little confusing me.

it indeed confusing, it's css works. if specify 1 value, used 4 sides. if specify two, first top/bottom padding , second left/right. when specifying three, goes top, left/right, bottom, echoing usage when 2 values provided.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -