AllExperts > DHTML 
Search      
DHTML
Volunteer
Answers to thousands of questions
 Home · More DHTML Questions · Answer Library  · Encyclopedia ·
More DHTML Answers
Question Library

Ask a question about DHTML
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Andrew Hoffman
Expertise
I can field just about any question within this topic ranging from JavaScript to CSS, the two ingredients of DHTML. I`m very interested in the W3C and its validation rules for HTML, XHTML, and CSS, and enjoy answering questions of this type as well. I detest sleep and respond at all hours of the day or night.


Experience
Experience in the area
I've been working with DHTML and CSS for 7 years now and build/maintain websites of my own that implement DHTML navigation.

What I'm doing now
My contract with Microsoft has ended and I am working for myself once again. Please contact me for any front-end work at antibland@gmail.com

 
   

You are here:  Experts > Computing/Technology > HTML/XML > DHTML > CSS Menu??

DHTML - CSS Menu??


Expert: Andrew Hoffman - 2/19/2008

Question
Hi Andrew,

I was wondering if you could answer a CSS question for me. I found a cool horizontal css menu:

http://www.projectseven.com/tutorials/navigation/auto_hide/

And I tried to use it on my site:

http://thehotelchelsea.com/allie/

It seems like I can't get the little menu bar to stay in the right place. When I seem to have it right in Firefox (on a MAC) my friends who have PCs say that they see it funny so I'm starting to feel helpless.

Is this kind of menu impossible for cross-browser purposes? Ideally I had wanted to make something like this:

http://www.ikies.com/overview.html

Thank you so much if you can help me!!

Allie

Answer
Allie,
I'm not certain what this will do to Firefox Mac, but try adding the following CSS properties to what's already there.  Just add the properties (e.g., position: relative--not the whole surrounding CSS rule).


/* line 177 */
#p7menubar li {
position: relative;
}

/* line 119 */
#p7menubar li ul {
top: 75px;
}

Basically, this says:

Give the list items holding the initially invisible drop-down lists a relative position.  This gives the absolutely positioned invisible drop-downs some context.  Now, these hidden lists are absolutely positioned with respect to their relatively positioned parents (the first-level list items).  This is working in Firefox Windows, so hopefully it won't break the Mac version.

Add to this Answer   Ask a Question


 
User Agreement | Privacy Policy | Kids' Privacy Policy | Help
Copyright  © 2008 About, Inc. AllExperts, AllExperts.com, and About.com are registered trademarks of About, Inc. All rights reserved.