03-17-2009, 11:51 AM | #1 |
fruminous edugeek
Posts: 6,745
Karma: 551260
Join Date: Oct 2006
Location: Northeast US
Device: iPad, eBw 1150
|
Help! IE6 problems! AAAaarrrrggghhhhh!
If anyone who knows a bit about cross-browser style sheets and has a few sanity points to spare could help, I'm offering a pile of karma and you can have the next Ministry of Silliness t-shirt dedicated to you.
My problem: on IE6, the pages of the site I am responsible for look crappy. (Big surprise.) However, there are still enough people using IE6 (especially here at the university) that I have to fix it, DESPITE the fact that there's supposed to be a complete site redesign "soon." (They've been saying that for over a year, now, so I think I need to just fix this.) The main site is here: http://wsbe.unh.edu/ A good example of a problematic page is here: http://wsbe.unh.edu/graduate-programs The content all gets shoved down below the sidebars. All looks fine on FF (several versions) and IE7, of course. I have Firebug and Xray on Firefox and these let me see where the CSS is going astray on that browser. Is there something equivalent for IE6? Can anyone take a look and make a suggestion? A wild-a** guess? I HATE IE6!!! |
03-17-2009, 11:57 AM | #2 |
zeldinha zippy zeldissima
Posts: 27,827
Karma: 921169
Join Date: Dec 2007
Location: Paris, France
Device: eb1150 & is that a nook in her pocket, or she just happy to see you?
|
ooh neko, i feel your pain. ie6 is the devil.
when i absolutely have to code for ie6, i use conditional comments in the css to create special rules for different browsers. then in the html, i add a wrapper and an extra ie6 conditional div like this : at the start of the body : Code:
<!--conditional div for IE 6 and older--> <!--[if lte IE 6]> <div id="ie6anddown"> <![endif]--> Code:
<!--END conditional div for IE only--> <!--[if IE]> </div> <![endif]--> non ie6 Code:
body>#wrapper .nav Code:
#ie6anddown .nav i'll try to take a closer look later but i'm about to go out now. |
Advert | |
|
03-17-2009, 12:02 PM | #3 |
zeldinha zippy zeldissima
Posts: 27,827
Karma: 921169
Join Date: Dec 2007
Location: Paris, France
Device: eb1150 & is that a nook in her pocket, or she just happy to see you?
|
oh, also, using the conditional divs you can specify behavior for several different browsers, just add an extra opening conditional div for each one. but at the end, you only need to add the closing tag once, because the browser doesn't see any of the opening div tags that don't concern it.
|
03-17-2009, 12:14 PM | #4 |
zeldinha zippy zeldissima
Posts: 27,827
Karma: 921169
Join Date: Dec 2007
Location: Paris, France
Device: eb1150 & is that a nook in her pocket, or she just happy to see you?
|
based on your description the problem is probably coming from the broken box model used by ie6, that is, it will add the size of the padding to the size of the element (which it shouldn't do, since the padding is INSIDE the blasted element), and then of course if it's supposed to add up to, say, 100% it turns out to be 100% + whatever padding there is, and obviously a window cannot display a page which is 120% wide. try reducing the total width of your columns with conditional css rules to make them all fit.
|
03-17-2009, 12:58 PM | #5 |
fruminous edugeek
Posts: 6,745
Karma: 551260
Join Date: Oct 2006
Location: Northeast US
Device: iPad, eBw 1150
|
Ok. I think I have it fixed. Even on the teeny screen I use for IE6 testing purposes.
Thanks for the help! |
Advert | |
|
03-17-2009, 12:59 PM | #6 |
zeldinha zippy zeldissima
Posts: 27,827
Karma: 921169
Join Date: Dec 2007
Location: Paris, France
Device: eb1150 & is that a nook in her pocket, or she just happy to see you?
|
i'm glad you figured it out !! let me know if you have any more troubles.
(and also : death to ie6 !!!!) |
03-17-2009, 01:08 PM | #7 |
Resident Curmudgeon
Posts: 74,049
Karma: 129333562
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
03-17-2009, 01:46 PM | #8 | |
fruminous edugeek
Posts: 6,745
Karma: 551260
Join Date: Oct 2006
Location: Northeast US
Device: iPad, eBw 1150
|
Now my users are complaining that on larger screens the edge of some of their content gets clipped, and anyway there's too much whitespace.
I'm trying a hack that looks like this: Quote:
Have I mentioned that I hate IE? |
|
03-17-2009, 01:50 PM | #9 |
zeldinha zippy zeldissima
Posts: 27,827
Karma: 921169
Join Date: Dec 2007
Location: Paris, France
Device: eb1150 & is that a nook in her pocket, or she just happy to see you?
|
hm... ie6 might not like that calculation. i don't know what to tell you... maybe don't specify the width at all on the content in ie6 ? try that to see what happens.
|
03-17-2009, 01:59 PM | #10 | |
fruminous edugeek
Posts: 6,745
Karma: 551260
Join Date: Oct 2006
Location: Northeast US
Device: iPad, eBw 1150
|
Quote:
The hack came from here: http://www.cameronmoll.com/archives/000892.html I found similar hacks all over the place. |
|
03-17-2009, 02:13 PM | #11 |
fruminous edugeek
Posts: 6,745
Karma: 551260
Join Date: Oct 2006
Location: Northeast US
Device: iPad, eBw 1150
|
Ok, I seem to have gotten it, by setting the comparison value above to 1300. Now to see if it works on someone else's larger screen....
|
03-17-2009, 02:13 PM | #12 |
zeldinha zippy zeldissima
Posts: 27,827
Karma: 921169
Join Date: Dec 2007
Location: Paris, France
Device: eb1150 & is that a nook in her pocket, or she just happy to see you?
|
hm.
hm hm hm. have you tried setting a fixed width to see what happens "width : 560px;") ? or not specifying the "width" value at all (comment out the entire line) ? try just to see what happens. |
03-17-2009, 02:14 PM | #13 |
zeldinha zippy zeldissima
Posts: 27,827
Karma: 921169
Join Date: Dec 2007
Location: Paris, France
Device: eb1150 & is that a nook in her pocket, or she just happy to see you?
|
ah, just saw your latest post. glad it finally worked, although it seems pretty ridiculous you'd have to go all the way to 1300 to make it click...
(i hate ie too. have i mentioned that (today) ?) |
03-17-2009, 03:03 PM | #14 |
fruminous edugeek
Posts: 6,745
Karma: 551260
Join Date: Oct 2006
Location: Northeast US
Device: iPad, eBw 1150
|
I tweaked it and got it down to 1005. There's a gap if you try to widen the screen where it pushes down to the bottom again, then it comes back and looks fine. That's the best I can do for now.
Thanks again for your help! |
03-17-2009, 06:41 PM | #15 |
Storm Surge'n
Posts: 5,776
Karma: 8213195
Join Date: Nov 2008
Location: Lobster Capital
Device: S0ny PRS-300/350/505/700/T1
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
I've got a few problems | RubenRybnik | Sony Reader | 13 | 03-10-2010 10:06 PM |
a few problems | kceb10 | Sony Reader | 8 | 03-09-2010 07:09 AM |
Anyone else having problems? | pshrynk | Amazon Kindle | 4 | 07-03-2008 01:12 PM |
Installing IE7 alongside IE6 | Colin Dunstan | Lounge | 0 | 08-13-2005 08:31 PM |