homepage Welcome to WebmasterWorld Guest from 54.204.94.228
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

    
Suckerfish Horizontal Menu
absolutshrk




msg:4422747
 6:43 pm on Feb 28, 2012 (gmt 0)
Hi All,
I'm trying to create a 2 level horizontal menu with Suckerfish, the problem is it has to be a specific width, but each sub-nav will need to be the same width, with varying number of elements.

See my code/example on jsFiddle - http://jsfiddle.net/squirrelradio/VVqtq/

If you mouse over item #4 I've tried to center the li elements under the list, but there is space at the end, I'm not sure why the auto padding isn't working correctly.

 

alt131




msg:4423936
 2:02 am on Mar 2, 2012 (gmt 0)

Hi absolutshrk and welcome to css :)

auto isn't an allowed value for padding (unlike margin). You need to set a length or a percentage - see more at 8.4 Padding properties: 'padding-top', 'padding-right', 'padding-bottom', 'padding-left', and 'padding' [w3.org]

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved