• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 762
  • Last Modified:

CSS Menu - Stop it from going to next line

Hi,

I have a CSS horizontal menu which works great. The problem is when I resize the menu it sends the content of the menu to the next line. Is there a way of preventing this from happening. To see what I mean download this menu to your desktop and then resize your browser. The background of the menu stays where it is suppose to but the text goes to the next line..

http://exploding-boy.com/images/cssmenus/menus.html

Many Thanks
0
brookba
Asked:
brookba
  • 2
  • 2
1 Solution
 
scrathcyboyCommented:
So tell me, what is the browser supposed to do if the screen size is LESS than the text to fit on one line?  Is is supposed to make a smaller font -- or is it supposed to Chop off the right side of our menu.  Tell me, what do you want the browser to do if the screen size is LESS WIDTH than the text you want to display??

When you answer that question and know what you want the browser to do, we can give an solution.
0
 
brookbaAuthor Commented:
oh sorry... the same way the experts exchange menu works. When you resize the browser it gets chopped off.. thanks
0
 
David S.Commented:
Set a minimum width on an ancestor (e.g. parent) element.

IE6 doesn't support the min-width property though.
0
 
scrathcyboyCommented:
EE is just using a fixed width layout -- when you slide the right side in, the layout stays the same.  You can do this just by specifying the width of all DIVs on your page, or the width of tables, etc.
0
 
David S.Commented:
The "Premium" skin is fixed width while the "Expert" skin is a constrained fluid layout. The right column of it is fixed width though.

This is the rule that sets the min-width:

#outerWrap { min-width:968px; }
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now