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

jquery - Invalid Assignment Left-Hand Side -

javascript - Preserving URL fragment through CAS sign-on -

asp.net mvc - Implementing normal user/pass, Twitter & Facebook auth -