Has anyone else seen this issue? If so, is there a work around it? I have a div in IE that needs to be 7px high. If I set the height to 7px and give it a border, the div is clearly not 7px. It actually doesn't change height until I make it bigger than 20px. Does anyone have a solution for this? IE 8 is where I have found this by the way.
Fotiman
6:12 pm on Dec 13, 2010 (gmt 0)
Did you try setting overflow:hidden?
andrewsmd
6:28 pm on Dec 13, 2010 (gmt 0)
I hadn't tried that but it didn't work. It's not an overflow issue. All I have is a brown bar that I want at the very top of the page. This image is 7px tall and I repeat it horizontally. IE won't make the div smaller than 20px though. This isn't the first time I've ran into this. The last time I just made my image 20px tall. This isn't an option here though.
Fotiman
6:50 pm on Dec 13, 2010 (gmt 0)
I put together a simple test case, and it's not behaving as you describe: