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
Post a Comment