Advanced search  

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]

Pages: [1]   Go Down

Author Topic: [Solved]: max-width in IE7  (Read 6166 times)

0 Members and 1 Guest are viewing this topic.

dp-wurzel

  • Coppermine novice
  • *
  • Country: 00
  • Offline Offline
  • Posts: 24
    • Fotos und Bilder gratis downloaden
[Solved]: max-width in IE7
« on: April 11, 2008, 11:24:38 pm »

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
« Last Edit: April 13, 2008, 06:18:15 pm by Nibbler »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: max-width in IE7
« Reply #1 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?
Logged

dp-wurzel

  • Coppermine novice
  • *
  • Country: 00
  • Offline Offline
  • Posts: 24
    • Fotos und Bilder gratis downloaden
Re: max-width in IE7
« Reply #2 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  ;)>
Logged

steveeh131047

  • Supporter
  • Coppermine frequent poster
  • ****
  • Offline Offline
  • Posts: 217
Re: max-width in IE7
« Reply #3 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: max-width in IE7
« Reply #4 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.
Logged

dp-wurzel

  • Coppermine novice
  • *
  • Country: 00
  • Offline Offline
  • Posts: 24
    • Fotos und Bilder gratis downloaden
Re: max-width in IE7
« Reply #5 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
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 15 queries.