[_] Ban IE
Tim Beadle
tim.beadle at gmail.com
Thu May 15 14:16:40 BST 2008
On Thu, May 15, 2008 at 2:03 PM, Jon Free <jon at tangymedia.co.uk> wrote: > IE margins!? > > Does the reset.css handle this and if so which bit? (long list of selectors) { margin: 0; padding: 0; /* etc. etc */ } It basically tells the browser to zero out the margin and padding (and other stuff) for the selectors listed (this is better than using *, the universal selector as it's too heavy-handed) rather than use its default styles, which do vary from browser to browser. It ensures you're starting at a known point, no matter which browser is viewing the content. > As mentioned by someone > else this is more than likely a rounding error due to the way in which it > occurs. I'm still surprised it does it though, and it's a pain as I wanted > it as simple as possible. This could well be the case. Rounding errors/differences between browsers have been known to do this. Work around it by using width: auto (which is the default) rather than 100%, perhaps? As has been said, a block element will expand to fill its container's width anyway. Tim