20041130 Tuesday November 30, 2004

Fix CSS max-width in IE Anthony has a good post on using this minmax script to fix a CSS bug in IE. If you're using the Sunsets theme (like I am) with Roller - you might want to add this to your page templates. I've patched this site - thanks Anthony!

To patch your theme, create a page with name "_minmax.js" and link "minmax.js", populate it with the script contents and then add the following in your theme's <head>:

    <script type="text/javascript" src="$ctxPath/page/$userName/minmax.js"></script>

You can also create CSS pages for your site using a similar technique. While we're talking about IE bugs, you might want to know that <script/> doesn't work in IE, that's why you always have to add the closing </script> element. Posted in Roller at Nov 30 2004, 08:23:31 AM MST 6 Comments

Comments:

You might want to name the page _minmax.js so that is doesn't show up in the navigation (Home | Archives | minmax.js), change the script reference appropriately.

Posted by Lance Lavandowska on November 30, 2004 at 10:07 AM MST #

Thanks Lance - fixed now.

Posted by Matt Raible on November 30, 2004 at 10:11 AM MST #

Matt, I don't know if you use Avantgo for your pda, but this 'fix' is probably what screws it up. Until the post below, your site worked fine in my tungsten, and I could read the posts on the way to work. All of the pages would degrade nicely to fit the width of the screen. Now everything is too wide and I have to scroll back and forth, instead of just up and down. What a bummer. I'm sure that I'm not the only one affected by this. Anyways, great site, always a joy to read. Take care.

Posted by Bruce Scharlau on December 08, 2004 at 02:20 AM MST #

Matt, thanks! The site works again in Avantgo. This is great, now I can read the pages again. Brilliant!

Posted by Bruce Scharlau on December 10, 2004 at 05:24 AM MST #

That's wierd Bruce - I didn't change anything!

Posted by Matt Raible on December 10, 2004 at 06:27 AM MST #

 
-- The site works again in Avantgo. --
-- That's wierd Bruce - I didn't change anything! --
 
Suspecting this could be a "reload" issue? Whether IE and/or Firefox will reload a page seems to depend on the DOCTYPE declaration.
 
- Al -
 

Posted by picbuck on November 23, 2005 at 09:19 AM MST #

Post a Comment:
  • HTML Syntax: Allowed
Click me to subscribe
Matt Raible is a Web Architect who enjoys developing applications with open source technologies. Contact me for rates.
« November 2008
SunMonTueWedThuFriSat
      
1
2
3
6
7
8
9
10
11
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
      
Today

Recent Entries

Tag Cloud