Quick CSS Question
Quick CSS Question
- Started
- Last post
- 4 Responses
- lw-d
I am trying to specify padding using the short-hand:
padding: 0px 4px 4px 4px;
Just wondering what the stucture is for the values, i.e. the first value is for the top, second left etc. etc.
Thanks
- acescence0
top, right, bottom, left
- welded0
Top, right, bottom, left. If you don't follow the proper order your'll be in TRBL. That's how I remember. :)
- lw-d0
Thanks guys, i've always written the long version, should save me some time.
- ldww0
i always think of it as a clock.
also, if the top and bottom are both 10 same and the left and right are both the 5 you could write
10px 5px;and if they are all the same, then of corse you only need one value.