1
brash
max-width work around for Internet Explorer
  • 2004/12/1 23:55

  • brash

  • Friend of XOOPS

  • Posts: 2206

  • Since: 2003/4/10


Because Internet Explorer is right on the edge (trailing edge that is ) of keeping up with the latest and greatest web design practices, it does not support a lot of new CSS2 properties. One of the new ones I am really wanting to use is the max-width attribute. IE doesn't support this, but I found this cool little workaround if anyone is interested;

http://www.svendtofte.com/code/max_width_in_ie/

2
coopersita
Re: max-width work around for Internet Explorer

On the same line, here's one for min-height.

http://www.mezzoblue.com/archives/2004/09/16/minheight_fi/index.php

3
m0nty
Re: max-width work around for Internet Explorer
  • 2004/12/2 1:18

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


yeah.. u can do it with various javascript methods..

altho too much java in a page will slow page requests..

i found it easier in XOOPS to just enclose the whole site in 1 big table and set the width of that table to a fixed size..

4
brash
Re: max-width work around for Internet Explorer
  • 2004/12/2 2:30

  • brash

  • Friend of XOOPS

  • Posts: 2206

  • Since: 2003/4/10


That's exactly what I've done using this CSS method Monty. I set a max-width of 999 pixels for an optimised display for screens of 1024x768, but I am not ostracizing 800x600 users in the process. Basically it means the theme is dynamic (no horizontal scroll bars) upto and including 1024x768. Then for all screen resolutions above this it is fixed width. This way I can find a balance between ensuring my site content is displayed as I want it on all resolutions (advantage of fixed width), while at the same time minimizing lost real estate on the page from having to account for the lowest screen resolutions all the time (advantage of dynamic width).

Login

Who's Online

242 user(s) are online (166 user(s) are browsing Support Forums)


Members: 0


Guests: 242


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits