Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS Align Issue in IE, works fine in FF 1

Status
Not open for further replies.

FAM

Technical User
Jan 13, 2003
345
GB
I am currently creating a site but having problems aligning my css horizontal menu in IE.

The development link is and if viewed in FF it aligns fine with the main body but when viewed in IE it has an offset of about 20+px to the right.

The css file is
Any suggestions on resolving this within IE?

Thanks
 
Ugh, there's so many things I don't know where to begin:

1. Having an xml definition above the doctype will throw IE into quirks mode. If you don't need it, get rid of it.
2. The way to center something in CSS is to use margins left and right as auto and a specified width for the element you want centered. I am surprised your code works in FF.
3. When having a font name with multiple words (e.g. Trebuchet MS) put it in quotes.
4. Why on earth is your banner inside a table? Why are you using tables in the first place.

Enough for now.
 
Vragabond,

Thanks for the quick response, your first suggestion resolved the IE problem with the xml definition. I have implemented all your suggestions successfully.

Thanks again.
FAM
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top