tags:

views:

87

answers:

3

Hello,

I am creating a website that uses a fluid layout with artificial columns. I have an image at the top with some text to the side. I want the image to have a minimum size of 550px and a maximum size of 75% of the parent div. I tried this:

.class{
    width: 550px;
    maxwidth: 75%;
}

but it did not work.

+2  A: 

The current CSS spec supports min-width and max-width, but not all browsers do. Namely, IE6. But most all other browsers on the market work fine.

Matchu
Which is my problem. Almost all of my traffic is using IE6-. My site works perfectly in FF, but IE6/7 screws up the column and CSS alignment.
Hawkcannon
A: 

Try replacing maxwidth with max-width.

Alan Haggai Alavi
+1  A: 

Try:


.class {
    min-width: 550px;
    width: 75%;
}

Tom
Typo. This is an IE6 error, not a CSS error. Good catch, though.
Hawkcannon
Incidentally, this article discusses getting max-width and min-width to work on IE6. I only just skimmed it, but perhaps it'll help?http://javascript.about.com/library/blwidth.htm
Tom
Thanks for the link! I will put this JScript on my page, then test it tomorrow.
Hawkcannon