This is a migrated thread and some comments may be shown as answers.

[Solved] How to auto-size width of entire menu bar

2 Answers 175 Views
Menu
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Carl
Top achievements
Rank 1
Carl asked on 28 Apr 2011, 01:38 AM
For a horizontally oriented menu, the default width of the menu items appear to be auto-sized, but NOT the overall width of the entire menu bar. When I set the overall width of the entire menu by setting the the width of an enclosing div, I can constrain the overall width but I get an extra blank item that does not look very good. So how to auto-size the overall width the entire menu bar to just the width of the sum of the individually auto-sized menu items without any extra blank space on the end(s) of the menu bar?

2 Answers, 1 is accepted

Sort by
0
nachid
Top achievements
Rank 1
answered on 28 Apr 2011, 07:07 AM
Add float :left to the .t-menu class to push your menu to the left side.
Or float :right to push it to the right side.
0
Matt
Top achievements
Rank 1
answered on 07 Sep 2011, 06:13 PM
Carl ... did you ever figure this out?
Tags
Menu
Asked by
Carl
Top achievements
Rank 1
Answers by
nachid
Top achievements
Rank 1
Matt
Top achievements
Rank 1
Share this question
or