CSS Sub Navigation Auto Width -


this has been bugging me quite while. please @ fiddle here.

http://jsfiddle.net/y9uef/

you can see subnav can't seem "grow" bigger if there's long text in it. know it's because width 100% of parent (in case top menu home, who, contact). can add width in subnav ul subnav ul bigger, work on subnavs regardign width of subnav content.

now if want dynamic? instance, if subnav content has "short text" (let's it's 50 pixels), subnav width 50 pixels. if subnav content has list "a very long text" (let's it's 200 pixels) subnav width automatically 200px.

thanks

you can try add white-space: nowrap li.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

sql server - python to mssql encoding problem -

windows - Python Service Installation - "Could not find PythonClass entry" -