CSS 102 : Comments
May 4, 2005
Comments
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!
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.
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?
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 :)
Damien:
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.
Mark:
Not entirely sure about your question – do you have an example link?

You can use this
feed to keep up with the comments made on this article.