HighDots Forums  

newbie...centering a submenu in ie??

alt.html alt.html


Discuss newbie...centering a submenu in ie?? in the alt.html forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
kaibo
 
Posts: n/a

Default newbie...centering a submenu in ie?? - 01-12-2006 , 12:27 PM






i'm trying to create a horizontal tab navigation bar with a submenu below
it. i've finally got everything lined up in firefox, and even managed to get
the main menu to center in IE. the only problem i have is that i cannot
figure out why the submenu will not 'drop down' below the main menu in IE.
(it is working in firefox)

http://www.monkeymynd.com/testcr/ind...ation=products

any suggestions are greatly appreciated.

also, i originally had this set up another way where the sub menu was
actually contained (within) the main menu. in this case, the sub items were
left aligning to the selected main menu item. this looked nice, but i can't
seem to get this example working without moving the sub menu outside of the
main menu's <ul>. here is the original html code to compare against the link
above.

note: this was designed with another .css template, i just wanted to show
how the submenu is wrapped withing the main.
<div id="header">
<ul id="primary">
<li><a href="index.php?location=home">Home</a></li>
<li id="current"><a href="index.php?location=products">Products</a></li>
<li><a href="index.php?location=services">Services</a></li>
<li><a href="index.php?location=download">Download</a></li>
<li><a href="index.php?location=support">Support</a></li>
<li><a href="index.php?location=contact">Contact</a></li>
<li><a href="index.php?location=about">About</a></li>
<li></li>
<ul id="secondary">
<!--<li><a href="index.php?location=products">Overview</a></li>-->
<li><a
href="index.php?location=products&sublocation=modu les&modid=members">Modules
</a></li>
<li><a
href="index.php?location=products&sublocation=bill ing">Billing/EFT</a></li>
<li><a
href="index.php?location=products&sublocation=pric ing">Pricing</a></li>
<li><a
href="index.php?location=products&sublocation=keyt ags">Keytags</a></li>
</ul>
</ul>
</div>



Reply With Quote
  #2  
Old   
kaibo
 
Posts: n/a

Default Re: newbie...centering a submenu in ie?? - 01-12-2006 , 12:30 PM






i added red & green backgrounds to show where things are lying down.
hopefully this is helpful to someone.



Reply With Quote
  #3  
Old   
Jan Faerber
 
Posts: n/a

Default Re: newbie...centering a submenu in ie?? - 01-12-2006 , 12:50 PM



kaibo ... output:

Quote:
note: this was designed with another .css template, i just wanted to show
how the submenu is wrapped withing the main.
<snip> Just use an URL like this one:
http://html.janfaerber.com/submenu/location.html



--
Jan

http://www.h-tut.at


Reply With Quote
  #4  
Old   
Beauregard T. Shagnasty
 
Posts: n/a

Default Re: newbie...centering a submenu in ie?? - 01-12-2006 , 01:13 PM



kaibo wrote:

Quote:
i'm trying to create a horizontal tab navigation bar with a submenu below
it. i've finally got everything lined up in firefox, and even managed to get
the main menu to center in IE. the only problem i have is that i cannot
figure out why the submenu will not 'drop down' below the main menu in IE.
(it is working in firefox)

http://www.monkeymynd.com/testcr/ind...ation=products

any suggestions are greatly appreciated.
Perhaps fixing all the errors would be a good start:
<http://validator.w3.org/check?verbose=1&uri=http%3A//www.monkeymynd.com/testcr/index.php%3Flocation%3Dproducts>
<http://jigsaw.w3.org/css-validator/validator?profile=css2&warning=2&uri=http%3A//www.monkeymynd.com/testcr/index.php%3Flocation%3Dproducts>

--
-bts
-Warning: I brake for lawn deer


Reply With Quote
  #5  
Old   
kaibo
 
Posts: n/a

Default Re: newbie...centering a submenu in ie?? - 01-12-2006 , 01:42 PM



i suppose i should have mentioned that this is someone elses code that was
given to me to fix. i just want to see if it's possible to center the menu
with the existing code first.



Reply With Quote
  #6  
Old   
kaibo
 
Posts: n/a

Default Re: newbie...centering a submenu in ie?? - 01-12-2006 , 01:59 PM



i cleaned it up, but i am not sure how to get rid of this error:

Line 12 column 51: cannot generate system identifier for general entity
"sublocation".
....<a
href="index.php?location=products&sublocation=modu les&modid=members">Modul



Reply With Quote
  #7  
Old   
Beauregard T. Shagnasty
 
Posts: n/a

Default Re: newbie...centering a submenu in ie?? - 01-12-2006 , 04:23 PM



kaibo wrote:

Quote:
i suppose i should have mentioned that this is someone elses code that
was given to me to fix. i just want to see if it's possible to center
the menu with the existing code first.
We've seen this page here asking for critique or help several times now.
So, you've been hired to fix it?

Did you google for the original poster's ID and find out what the
previous suggestions were? I don't remember them all at the moment.

--
-bts
-Warning: I brake for lawn deer


Reply With Quote
  #8  
Old   
kaibo
 
Posts: n/a

Default Re: newbie...centering a submenu in ie?? - 01-12-2006 , 04:48 PM



actually, i offered to update this website (for free) as a way to get some
experience. i'm currently working as a delphi programmer, but have an
interest in web design. thus...i have tried several different templates,
read many messages, etc. but still cannot get one scheme to work in both
browsers.

the majority of suggestions that i have been given have mainly been html
syntax issues that really aren't affecting the problem at hand. i cleaned up
the source as suggested, but still cannot get the submenu centered on IE.

i didn't realize it was such a big thing... seemed that if the main menu is
centering, then a seasoned web designed could give me a quick answer as to
what i'm doing wrong.

"Beauregard T. Shagnasty" <a.nony.mous (AT) example (DOT) invalid> wrote

Quote:
kaibo wrote:

i suppose i should have mentioned that this is someone elses code that
was given to me to fix. i just want to see if it's possible to center
the menu with the existing code first.

We've seen this page here asking for critique or help several times now.
So, you've been hired to fix it?

Did you google for the original poster's ID and find out what the
previous suggestions were? I don't remember them all at the moment.

--
-bts
-Warning: I brake for lawn deer



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.