coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: dp-wurzel on April 11, 2008, 11:24:38 PM

Title: [Solved]: max-width in IE7
Post by: dp-wurzel on April 11, 2008, 11:24:38 PM
hello,
sorry for my english...

in my gallery http://www.foto-grafen.de/webalbum/index.php (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 (http://www.foto-grafen.de/index.html).

Can anyone help me?

MfG dp-wurzel
Title: Re: max-width in IE7
Post by: Joachim Müller on April 11, 2008, 11:36:19 PM
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?
Title: Re: max-width in IE7
Post by: dp-wurzel on April 11, 2008, 11:51:51 PM
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  ;)>
Title: Re: max-width in IE7
Post by: steveeh131047 on April 12, 2008, 10:10:37 AM
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 (http://www.wileymedia.com/weblog/archives/2007/02/maxwidth_and_internet_explorer.html)
Title: Re: max-width in IE7
Post by: Joachim Müller on April 12, 2008, 11:15:48 AM
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.
Title: Re: max-width in IE7
Post by: dp-wurzel on April 13, 2008, 06:15:25 PM
Hi,

Problem solved.

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

Thanks all

MfG dp-wurzel