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 11-03-2010, 05:56 AM   PM User | #1
boogily
Regular Coder

 
boogily's Avatar
 
Join Date: Jul 2009
Posts: 275
Thanks: 18
Thanked 4 Times in 4 Posts
boogily is an unknown quantity at this point
CSS issue with dropdown menu...

I am creating / customizing a dropdown menu. I have one issue. The drop down parts don't line up correctly. I am using Joomla. I just can't see where in the css to get the child ULs to line up directly underneath the parent. Any help would be awesome

http://www.becompleteamerica.com/

user: test
pass: test
__________________
Joomla Development Company and MN SEO
"Joomla development from design to SEO"
boogily is offline   Reply With Quote
Old 11-03-2010, 08:59 AM   PM User | #2
SB65
Senior Coder

 
Join Date: Feb 2009
Location: West Yorkshire
Posts: 2,817
Thanks: 9
Thanked 681 Times in 675 Posts
SB65 will become famous soon enoughSB65 will become famous soon enough
Your problem is this line:

Code:
.sf-menu li {
background:none repeat scroll 0 0 transparent;
right:50%;
}
which is offsetting the dropdown li. Something like:

Code:
.sf-menu li li{right:0}
should do the trick.
SB65 is offline   Reply With Quote
Old 11-03-2010, 03:27 PM   PM User | #3
boogily
Regular Coder

 
boogily's Avatar
 
Join Date: Jul 2009
Posts: 275
Thanks: 18
Thanked 4 Times in 4 Posts
boogily is an unknown quantity at this point
Thanks for the help. Unfortunately, I have to use an unordered list style menu for this, and I need it centered. I used the left and right 50% trick to center it since they need left floats to be a horizontal list.

Unless you know of any other tricks...
__________________
Joomla Development Company and MN SEO
"Joomla development from design to SEO"
boogily is offline   Reply With Quote
Old 11-03-2010, 04:06 PM   PM User | #4
SB65
Senior Coder

 
Join Date: Feb 2009
Location: West Yorkshire
Posts: 2,817
Thanks: 9
Thanked 681 Times in 675 Posts
SB65 will become famous soon enoughSB65 will become famous soon enough
Yes, but you only need that for your top level lis, I think, so the code I posted should be fine as it only affects the second level lis.
SB65 is offline   Reply With Quote
Old 11-03-2010, 04:30 PM   PM User | #5
boogily
Regular Coder

 
boogily's Avatar
 
Join Date: Jul 2009
Posts: 275
Thanks: 18
Thanked 4 Times in 4 Posts
boogily is an unknown quantity at this point
I kind of redid most of my CSS, and actually display table on the container worked out well for me.

http://www.cssplay.co.uk/menus/centered2.html

Used that method for centering. Thanks anyways
__________________
Joomla Development Company and MN SEO
"Joomla development from design to SEO"
boogily is offline   Reply With Quote
Reply

Bookmarks

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 03:45 PM.


Advertisement
Log in to turn off these ads.