Click to See Complete Forum and Search --> : setting height


Krisman
09-26-2007, 01:14 AM
I'm using a div tag as a news box and can't get its height constant in IE6. I haven't been able to check in anyother browsers.
This is my current code. Its outside of any other tags and theres no css on divisions in general (just another div class) so nothing else should be affecting it.

div.news {
background-color: transparent;
border: inset 3px #FF3399;
position: absolute;
top: 170px; left: 150px;
min-height: 200px;
max-height: 200px;
width: 300px;
scroll: auto; }

<div class="news">Lots of text was here to test height just text no HTML</div>

Centauri
09-26-2007, 01:29 AM
IE6 does not recognise min-height or max-height. It treats height as min-height.

Krisman
09-26-2007, 01:42 AM
So is there anyway in IE6 that will be valid css 2.01 and html 4.01 strict too make its height stay at 200px or will I have to go transitional.

Centauri
09-26-2007, 01:54 AM
If you set the height as well as overflow (hidden or auto) then it should stay at that.

Krisman
09-26-2007, 01:58 AM
Thanks, thats where I made my big mistake I put scroll instead of overflow I've done that a couple times and yet I keep doing it.

Thanks again.