PDA

View Full Version : css query


chriskq
02-14-2006, 10:05 PM
Hi all, im modding someone else's css (that are no longer around at this work) and im a little unsure of this line of code padding: 7px 10px 3px;

which one of the of the padding gets duplicated??
is it: 7pxtop 10pxright 3pxbottom and 10pxleft ?or...
topic a little hard to find on the web
any help appreciated
cheers

domedia
02-14-2006, 10:13 PM
when only 3 values are defined it's top, left/right, bottom.
So that line is the same as
padding: 7px 10px 3px 10px;

Ain't CSS fun? :)

If you ever wonder about these kind of things, and you have a hard time finding it on the web, you can go directly to the source http://www.w3c.org/

chriskq
02-16-2006, 02:34 AM
Thanks Dom, that help was great.
i think i got even more confused coz where he had widt\h: the (numbers didnt seem to add up), but once again thanks