CSS
-Tricks
treehouse :
what would you like to learn today?
Web Design
Web Development
iOS Development
Show search box
Search
Search in:
All
Articles
Forums
Snippets
Videos
✕
Home
Forums
Snippets
Gallery
Videos
Almanac
Demos
Lodge
Navigation 'n' Search
Forums
Illustration by Nick Sirotich
Forums
»
JavaScript Jungle
jQuery Superfish supersubs minWidth problem
dzulfriday
Permalink to comment
#
June 2012
Take a look at my dev site:
http://dev.taarana.org.my/
I ask the developer how to make my menu shows in one line so he said change the main.js that contains SuperFish menu. The code snippet is
$('ul.sf-menu').supersubs({
minWidth: 27,
maxWidth: 40,
extraWidth: 1
})
The problem is solved, all menu displayed in one line. But now new problem happen, the menu with short word shows so many extra spaces in the end.
Is there anyway i can set only the menu with the longest word will have different width? Or you guys any other trick?
demo
Permalink to comment
#
June 2012
ok
Add a Comment
I ask the developer how to make my menu shows in one line so he said change the main.js that contains SuperFish menu. The code snippet is
The problem is solved, all menu displayed in one line. But now new problem happen, the menu with short word shows so many extra spaces in the end.
Is there anyway i can set only the menu with the longest word will have different width? Or you guys any other trick?