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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Drop down menus appearing right in Firefox but not IE7 1

Status
Not open for further replies.

rexolio2008

Technical User
Apr 24, 2008
41
US
I don't have a lot of experience with css and am getting back into site development as a hobby. I cannot for the life of me figure why my drop down menus line up correctly in firefox but not in IE.

In IE, the drop downs are moved way over to the right and the "Welcome to..." text is pushed down on the page. It's perfect in FF.


Any help or suggestions greatly appreciated!
 
You can fix the up/down issue by changing your top margin of 88px for top padding of 88px.

I suspect you can solve the left/right issue by setting position:relative on one of the container items and adjusting your left offset accoringly.

Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Thanks Dan... the padding trick worked. I am befuddled as to why, so if could explain that would be great!

As far as the left/right issue... I tried changing the position value from absolute to relative - I noticed then that FireFox did the same thing as IE... the drop downs were way to the right.

As far as offsetting it with position set to relative, how would I do that? Set negative left margins?
 
Sorry, Dan... you're above my head. New to CSS. I'll try another avenue. Thanks for the help on the margin/padding issue though.
 
Any Experienced Tek-Tippers,

I started over with the menus. Again, I get down to the exact behavior that I want in Firefox, but IE just refuses to interpret the CSS the way Firefox does. I don't understand why. If there is anyone who can help me out, I'd really, really appreciate it!

Here's my latest attempt: View in Firefox first to see what it's NOT doing in IE.

Thanks in advance.
 
Ah, Chris... you're my hero. I had a DOCTYPE in the original index file, but I forgot it when I started making copies to test different menu scripts. Works great now.

I'm going to have a beer now. I'll be toasting you!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top