[Solved]: max-width in IE7 [Solved]: max-width in IE7
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

[Solved]: max-width in IE7

Started by dp-wurzel, April 11, 2008, 11:24:38 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dp-wurzel

hello,
sorry for my english...

in my gallery http://www.foto-grafen.de/webalbum/index.php I have set "max-width:1280px;" for the <div> "#seite1" in the "style.css".
it works in Firefox and Opera.  In IE7 doesn't work. I dont know, why.
"max-width:1280px;"  works at my mainpagehttp://www.foto-grafen.de/index.html.

Can anyone help me?

MfG dp-wurzel

Joachim Müller

max-width should work in IE7, but doesn't work in previous versions of IE, so you shouldn't rely on it (see http://de.selfhtml.org/css/eigenschaften/positionierung.htm#max_width [German article]). Why don't you use width instead of max-width?

dp-wurzel

Hello,

Yes, I know "max-width:" works >= IE7.
Why not "width:"? If the screen resolution smaller than 1280px is a scroll bar. "Max-width:" reduced viewing on the screen resolution. No Scrollbar.
I do not know why it works on the start page but not in the gallery and why works in Firefox and Opera?
Is there a setting in the Template.php?

MfG dp-wurzel

<english from Google  ;)>

steveeh131047

Not sure if this helps, but IE7's interpretation of "max-width" seems to depend on the Doc Type declaration.

Here's a reference:
http://www.wileymedia.com/weblog/archives/2007/02/maxwidth_and_internet_explorer.html

Joachim Müller

You really shouldn't use max-width at all, as it is not working across browsers. IE 6 or older is still around a lot.

dp-wurzel

Hi,

Problem solved.

I have PHP Code before Doctype.(Adlogger Cache Control)
IE7 goes in Quirks Mode.

Thanks all

MfG dp-wurzel