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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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