|
| |
|
|
spinningjennie
Posts: 309 Joined: 2/20/2002 From: Status: offline
|
Min and max width coding - 9/22/2006 3:44:22
I'd like to create a min and max width on this page. Here's the stylesheet. Ideally I'd also like the #nav div to also have a minimum width so the logo doesn't stick out when the window is resized. I've tried to put some javascript into my page for IE, and some code in #container div for other browsers. It doesn't seem to work. I'd appreciate any advice. Regards, spinningjennie
|
|
|
|
spinningjennie
Posts: 309 Joined: 2/20/2002 From: Status: offline
|
RE: Min and max width coding - 9/26/2006 2:51:27
Thanks very much Jaybee for your advice. I'm afraid, however that I'm not getting it to work in either IE or FireFox. Despite the Cameron Moll link saying that the technique would fix the IE window freezing on resize, it does freeze. And in FireFox there appears to be no minimum limit on the screen size. Here's the page. Here's the stylesheet. Any advice on this vexing issue much appreciated! spinningjennie
|
|
|
|
spinningjennie
Posts: 309 Joined: 2/20/2002 From: Status: offline
|
RE: Min and max width coding IE freeze - 9/27/2006 3:17:14
Sorry Jaybee. I thought I'd added the min-width and max-width. Plain careless. I've now added this and the min width works in FireFox but in IE the screen freezes when I reduce the width, despite the code seeming to be following the Cameron Moll link instructions. Here's my stylesheet code: #container, #footer { width: expression(document.body.clientWidth < 742? "740px" : document.body.clientWidth > 1202? "1200px" : "auto"); min-width:740px; max-width:1200px; } Any thoughts on this much appreciated! spinning jennie
|
|
|
|
spinningjennie
Posts: 309 Joined: 2/20/2002 From: Status: offline
|
RE: Min and max width coding IE - 9/27/2006 23:50:31
Thanks again for the input Jaybee. I've now separated the expressions as you suggest, which does stop the IE6 freezing when I reduce the window size. However there is no longer any limit on my ability to reduce the screen size. Here's the page again. Here's the stylesheet again. As to the reasons for including max/min width on this draft site, I was trying to make a miniumum width to stop the logo from poking out from its column when the screen size is reduced. And I was trying to make a max width because I was alerted by Tailslide that it's a good idea to make a max width limit to improve readability. Very long lines of text are hard to read. I take your point about the javascript being able to be disabled. I don't know if this is a major concern, other than it means that the expression won't work for those people. Does it mean the site may not be viewed at all? Thanks again. spinningjennie
|
|
|
|
spinningjennie
Posts: 309 Joined: 2/20/2002 From: Status: offline
|
RE: Min and max width coding IE - 9/28/2006 23:30:36
Thanks again Jaybee! You're probably right that I don't need to worry about it in this case. With your help I have now managed at least to get the max width to work in IE! Cheers, spinningjennie
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|