In the Save for Web dialog, cllick on Image Size (in the bottom right corner): select “Clip to Artboard” and hit Apply.
From this article, with some small changes:
Ta-da!
Negative margins don’t work in IE6 on floated elements.
If possible, use another hasLayout trigger:
.element {
float: none:
zoom: 1;
}
I came across this weird bug in Firefox. The scrollbar was missing, but I hadn’t even started any CSS yet. I figured the only special thing I’d done was setting a meta tag to get rid of those cartoon looking buttons in IE6/XP.
<meta http-equiv="MSThemeCompatible" content="no" />
Accidently it also strips Firefox of it’s scrollbar.
Want an anchor element to display as a block element while inline?
<ul> as block with height.<li> with line-height, not height. <a> to display: inline-table;
<a> to display: inline-block;