Digital Web Magazine

The web professional's online magazine of choice.

CSS 102 : Comments

By Mark Newhouse

May 4, 2005


mark rush

May 5, 2005 10:12 AM

have you noticed that IE’s borders are inside the boundaries of a box with MOZ borders being on the outside so in IE is 100px wide whilst in moz its 102px wide!

Mark Newhouse

May 5, 2005 2:06 PM

Ahh! That has to do with the box model, which is the subject of the next article in the series. In the meantime, do a search on “Box Model Hack” to see what you can do to fix things.


May 5, 2005 10:07 PM

Great article and thanks for clarifying one item which has foxed me previously – that using the shorthand ‘background’ attribute resets all other value’s. This is the first time I’ve heard this and I’ve read several very good CSS books without coming across that previously. Do you know if this occurs when using other shorthand properties, i.e. font etc?

mark rush

May 6, 2005 3:19 AM

whilst im here – has anyone solved the problem in IE of a container not snapping to the bottom of its contents when theyre floated left – mucho annoying :)

Mark Newhouse

May 10, 2005 2:05 PM


Thanks – and glad I could help. Yes, using any shorthand declaration will reset any undefined values to their defaults. So declaring, for example:

font: 1em/1.5em Georgia, serif;

for a heading will reset the font-weight to normal since you did not specify a font weight (or style, for that matter) in the shorthand.


Not entirely sure about your question – do you have an example link?

Sorry, comments are closed.

Media Temple

via Ad Packs