Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-29-2013, 03:46 PM   PM User | #1
ChrisL_57
New to the CF scene

 
Join Date: Jan 2013
Location: Bristol, UK
Posts: 9
Thanks: 1
Thanked 0 Times in 0 Posts
ChrisL_57 is an unknown quantity at this point
Aligning a sub menu css

Hi,
Under the 'menu' option on my site i need the links to appear side by side rather than one above the other?
Any tips?

My site is here
ChrisL_57 is offline   Reply With Quote
Old 01-29-2013, 07:21 PM   PM User | #2
jerry62704
Senior Coder

 
jerry62704's Avatar
 
Join Date: Oct 2007
Location: Springfield, IL
Posts: 1,049
Thanks: 9
Thanked 82 Times in 82 Posts
jerry62704 is on a distinguished road
It's up to you what you want the site to look like. You have a bigger problem that the submenu items dont all appear unless you scroll over them.

You should look to the CSS again with an eye to reduce the need for so many different classes on one thing, but YMMV.

It takes too long to figure out why the menu is only partially shown given all those classes to wade through.

Good luck.
__________________
.
.
...and gladly would he learn and gladly teach

Visit www.LiberalsWin.com for humor and the unique Bush/Obama Approval Polls
jerry62704 is offline   Reply With Quote
Old 01-29-2013, 08:32 PM   PM User | #3
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
Hello ChrisL_57,
Your menu items will show fine once you get them to display side by side. The reason you can't see them till you hover over them is the li's that go beyond the 60px height of dropped ul are white text over that #eeeeee background.

To make your dropped li's side by side, you would need to float them. Much like you did the li's in the parent ul.

.../edit I see now you are floating the dropped li's. The problem is the 100% width. If the li is the full width of the ul, there is no room for another li to sit alongside.

Try giving your dropped li's a width like this -
Code:
#main-menu .menu ul li {
    width: 100px;
}


A much simpler menu example can be seen here. Might give you some ideas.


.
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad
Excavator is offline   Reply With Quote
Old 01-30-2013, 10:48 AM   PM User | #4
ChrisL_57
New to the CF scene

 
Join Date: Jan 2013
Location: Bristol, UK
Posts: 9
Thanks: 1
Thanked 0 Times in 0 Posts
ChrisL_57 is an unknown quantity at this point
Thank you for your help Excavator.
That's done the trick!
ChrisL_57 is offline   Reply With Quote
Reply

Bookmarks

Tags
css, sub-menu

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

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

Forum Jump


All times are GMT +1. The time now is 07:16 PM.


Advertisement
Log in to turn off these ads.