Solved

CSS Menu - Stop it from going to next line

Posted on 2008-10-03
5
749 Views
Last Modified: 2012-05-05
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
Comment
Question by:brookba
  • 2
  • 2
5 Comments
 
LVL 44

Expert Comment

by:scrathcyboy
ID: 22639763
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
 

Author Comment

by:brookba
ID: 22640054
oh sorry... the same way the experts exchange menu works. When you resize the browser it gets chopped off.. thanks
0
 
LVL 42

Expert Comment

by:David S.
ID: 22640191
Set a minimum width on an ancestor (e.g. parent) element.

IE6 doesn't support the min-width property though.
0
 
LVL 44

Expert Comment

by:scrathcyboy
ID: 22641444
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
 
LVL 42

Accepted Solution

by:
David S. earned 500 total points
ID: 22641616
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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question