 Groups: ProSeller
Joined: 7/4/2011 Posts: 514 Location: Surrey
|
Hi, after hacking all the old posts, I've been trying to get a horizontal navigation bar working...for some reason it is appearing as vertical. The basic table and all the links are working, but it's seems like it is not recognizing my CSS style changes. Can anyone spot a reason why it might not be working? PS(I'm a novice at this, so it could be something really simple..lol) Here is the opening code for my table and the CSS code I entered:
<table class="center" width="900" cellpadding="0" cellspacing="0"> <tr> <td> <div id="MENU"> <ul> <li> <a href="http://www.zazzle.com/iiphotoart/gifts?cg=196649538546570928">ACCESSORIES</a>
etc, etc.
/* HORIZONTAL NAV BAR STYLE */ #menu{ padding:0; margin:10px; width: 100%; background-color: #939a8b; border-bottom: 1px solid #fff; height:31px; border-width:medium; border-color:#000000; border-style: double; } #menu ul{ padding:0; width: 777px; margin: 0 auto; } #menu li{ position: relative; float:left; list-style: none; margin-left: 25px; padding:0; background-color: #939a8b; font-size:14px; font-weight:bold; text-align:center; } #menu li a{ font-weight: bold; display: block; text-decoration:none; text-align: center; color: #efede8; padding: 8px 12px; border-right: 0px solid #fff; line-height: 15px; } #menu li a:hover{ background-color: #d8caa6; color: #474C60; } #menu ul ul{ position: absolute; top: 30px; visibility: hidden; z-index: 1000; } #menu ul ul li, #menu ul ul li a { clear:both; width:25%; text-align:left; margin:0px; padding:2px;
} #menu ul li:hover ul{ visibility:visible; z-index: 1000; }
|
|
 Groups: ProSeller
Joined: 4/7/2008 Posts: 660
|
Check out M's post in here . . . all questions answered. M is great.
|
|
 Groups: ProSeller
Joined: 7/4/2011 Posts: 514 Location: Surrey
|
thanks PJ, I'll do that....I noticed M's question and answer post right after I put this here.
|
|
 Groups: ProSeller
Joined: 7/5/2009 Posts: 301 Location: North Bay
|
I think it's the fact that you have MENU in caps in your html and menu in lower case in your CSS. I'm pretty sure that matters.
|
|
 Groups: ProSeller
Joined: 7/4/2011 Posts: 514 Location: Surrey
|
Ahhhh, good point OlPam. I'll watch out for that in future.Thanks  !
|
|
 Groups: ProSeller
Joined: 7/5/2009 Posts: 301 Location: North Bay
|
You're welcome. So did it work? I looked at your store, but don't see it there yet.
|
|
 Groups: ProSeller
Joined: 7/4/2011 Posts: 514 Location: Surrey
|
I never got time to try again Pam......have gotten busy creating products and decided to just leave it as is for the moment. I'll tinker away at it another day.
|
|
 Groups: ProSeller
Joined: 7/5/2009 Posts: 301 Location: North Bay
|
Yeah, it can be time consuming. Let me know when you get a chance. I'd love to see it.
|
|
|
Guest |