Tekforums

Chat => Entertainment & Technology => Topic started by: Christopher Monkey on October 15, 2006, 11:20:54 AM

Title: CSS issues with IE5 / 6
Post by: Christopher Monkey on October 15, 2006, 11:20:54 AM
Im currently working on a webpage for a friend, atm its done with quick and dirty table, so ignore that. The issue ive got is with the rollover menu at the top, just under the title. In FF, Mozilla, Opera and IE7 it works flawlessly (except the 2ish pixel grow when you roll over a sub menu). In IE 6 the sub menus dont hide and the layouts all to feck!

Website (http://homepage.ntlworld.com/michael.gedrim/Bluefish)
Css (http://homepage.ntlworld.com/michael.gedrim/Bluefish/css/basic.css)
Java script (http://homepage.ntlworld.com/michael.gedrim/Bluefish/js/drop_down.js)
Title: Re:CSS issues with IE5 / 6
Post by: M3ta7h3ad on October 15, 2006, 11:26:57 AM
IE gives the error

"Line 12, char 3: Object does not support this particular method" in Nav.html
Title: Re:CSS issues with IE5 / 6
Post by: Christopher Monkey on October 15, 2006, 12:01:40 PM
line 12 is blank, if you remove the whitespace L12 C3 is the l of
(http://homepage.ntlworld.com/michael.gedrim/line12error.JPG)
Title: Re:CSS issues with IE5 / 6
Post by: M3ta7h3ad on October 15, 2006, 12:49:26 PM
no idea matey.
Title: CSS issues with IE5 / 6
Post by: cornet on October 15, 2006, 23:42:14 PM
Its not the HTML its the javascript.

At a guess the problem is actually line 11 char 40 of the javascript (the one right after "this.className=this.className.replace")

On my linux box it appears as 2 right angle brackets.

Remove that char then try again in IE :)

Cornet
Title: Re:CSS issues with IE5 / 6
Post by: Christopher Monkey on October 16, 2006, 14:35:04 PM
Cheers cornet... id not noticed that.... menus disappear now but their internal layout is all spacked about
Title: Re:CSS issues with IE5 / 6
Post by: shofty on October 16, 2006, 15:52:59 PM
are you using some some sort of suckerfish derivative there?

you ight want to use the * html hack to give IE different spacings.

Matt
Title: CSS issues with IE5 / 6
Post by: Christopher Monkey on October 17, 2006, 14:14:48 PM
bytejunkie, pray tell of this magical hack.......

never heard of it!!?!
Title: Re:CSS issues with IE5 / 6
Post by: shofty on October 17, 2006, 14:26:04 PM


#container {
height: 200px;
padding: 20px;
}

* html #container {height: 160px}



in good browsers the height will be 200px, in IE 5 and 6 (IIRC) itll be 400. Useful because IE deals with margin and padding in a way the W3C didnt tell it to.

the * html will be ignored by everything else but IE has a container outside the HTML container called root which is addressed by the * so it interprets the rule and overwrites the one above it.

which is a convoluted way of explaining it.

this might do a better job.
http://www.positioniseverything.net/articles/poll/star-html.php

Matt