"SWE" <me@privacy.net> wrote:
I'm new to using style sheets for laying out my web pages. I have a
horizontal navigation menu that is split into two sections - three buttons
on the left and a submenu on the right that changes depending on which
button you select. The menu looks good in Internet Explorer 6, but in
Mozilla Firefox 0.8 and Netscape Navigator 7.1 the submenu positions itself
further down the page instead of right next to the buttons. I don't know how
to adequately explain the problem, so if anyone has the time to check it
out, please use the link below. Any thoughts as to what I'm doing wrong and
more specifically, how to fix it?
http://www.jlshapiro.com/test/
The DOM Inspector is a great tool for debugging web pages, especially
if you're having problems with Mozilla.
The divs are positioned correctly, but then the content is moved
downwards because of teh default top margin on the <p> elements.
Either set margin-top: 0 for these or get rid of the altogether -
these aren't paragraphs so it's not really the best mark-up.
You need to think about how users who do not have JavaScript enabled
are going to use your site. And as ever validating your code would be
a good idea.
Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor
Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>