PDA

View Full Version : IE 7 Navigation CSS issues



DeringerColt
May 16th, 2007, 07:26 AM
Hi all

I have just created a navigation bar using an external style sheet, it works perfectly in FF, but it is completely messed up in IE.

Can anyone help me or give me advice on how to solve this problem

Cheers

Deringer

PS. I have attached the files containg the problem

SlowRoasted
May 16th, 2007, 08:21 AM
It works fine in IE7 for me once I removed <style type="text/css"> from the css file.

DeringerColt
May 16th, 2007, 10:35 AM
Thanks Slowroasted, but why did that affect the layout of the navigation on the page then?

Cheers

Deringer

fabiopb
May 16th, 2007, 10:43 AM
yes... slowroaster is right. the "<style type......>" does not belong in a css file. it is for a browser to understand what type of file is being 'associated' to it, hence the "link rel" statement in the htm/l file.

SlowRoasted
May 16th, 2007, 10:44 AM
You aren't supposed to put that tag in an external css file, it's for styles defined in the head of a html/php/asp/etc document. I guess FF overlooked the tag and IE didn't.

DeringerColt
May 16th, 2007, 11:17 AM
Ahh! I see now. cheers.