PDA

View Full Version : Why Does Safari Ignore Grouped Margin & Padding Properties?


Jordan_Andreola
11-25-2003, 07:41 PM
Apparently, this is cool:

padding-top: 0px;
padding-right: 2px;
padding-bottom: 0px;
padding-left: 2px;

But not this:

padding: 0px, 2px, 0px, 2px;

Even IE for mac os reads the the grouping correctly. It may seem like no big deal to write them all out, but when you've got 15 class declarations all with margin & padding settings, it's a lot of extra code.

redhead
11-25-2003, 08:24 PM
Does it work without the commas?

padding: 0px 2px 0px 2px;

rmedek
11-26-2003, 12:15 PM
Redhead's right-- proper CSS syntax for grouping padding (or margin or border, etc) is without commas...