Advertisement

01.22.2004 at 12:33PM PST, ID: 20859668
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.0

prevent wrapping in CSS menu

Asked by jlouwere in Cascading Style Sheets (CSS)

Tags: , ,

I have built a menu using CSS as described in the article http://www.alistapart.com/articles/slidingdoors2/
Everything works ok except for one detail. When the browser window width is smaller than the width of the entire menu, the menu wraps to the next line. In an effort to prevent this, I have added the "white-space: nowrap" style to the UL, but it isn't working. Any ideas on how I can prevent the menu from wrapping?

Here is a simple example of just the menu. Resize the browser until it wraps and you will see the problem.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <title>Menu</title>
  <style type="text/css">

  DIV.menu
  {
     float            : left;
     width            : 100%;
     background       : #FFFFFF url(/images/menuBorder.gif) repeat-x bottom;
  }

  DIV.menu UL
  {
     margin           : 0px;
     padding          : 0px;
     list-style       : none;
     white-space      : nowrap;
  }

  DIV.menu LI
  {
     display          : inline;
     margin           : 0px;
     padding          : 0px;
  }

  DIV.menu A
  {
     float            : left;
     background       : url(/images/menuRight.gif) no-repeat right top;
     border-bottom    : 1px solid #000;

     font-weight      : bold;
     text-decoration  : none;
  }
  DIV.menu A:hover
  {
     background-position: 100% -150px;
  }
  DIV.menu A:link, DIV.menu A:visited,
  DIV.menu A:active, DIV.menu A:hover
  {  
     color            : #000000;
  }
 
  DIV.menu SPAN
  {  
     float            : left;
     display          : block;
     background       : url(/images/menuLeft.gif) no-repeat left top;
     padding          : 5px 9px;
     white-space      : nowrap;
  }
  /* Commented Backslash Hack hides rule from IE5-Mac \*/
  DIV.menu SPAN {float : none;}
  /* End IE5-Mac hack */
  DIV.menu A:hover SPAN
  {  
     background-position: 0% -150px;
  }
 
  DIV.menu LI#current A
  {  
     background-position: 100% -150px;
     border-width     : 0px;
  }
 
  DIV.menu LI#current SPAN
  {  
     background-position: 0% -150px;
     padding-bottom   : 6px;
  }

  </style>
</head>
<body>

<div class="menu">
  <ul>
    <li><a href="/"><span>Home</span></a></li>
    <li><a href="#"><span>Page 1</span></a></li>
    <li id="current"><a href="/"><span>Page 2</span></a></li>
    <li><a href="#"><span>Page 3</span></a></li>
    <li><a href="#"><span>Page 4</span></a></li>
    <li><a href="#"><span>Page 5</span></a></li>
  </ul>
</div>

</body>
</html>
Start Free Trial
 
Loading Advertisement...
 
[+][-]01.22.2004 at 01:28PM PST, ID: 10178488

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.22.2004 at 01:30PM PST, ID: 10178515

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.22.2004 at 01:40PM PST, ID: 10178683

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.22.2004 at 01:45PM PST, ID: 10178748

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.22.2004 at 01:53PM PST, ID: 10178837

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.22.2004 at 01:53PM PST, ID: 10178842

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.22.2004 at 02:00PM PST, ID: 10178918

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.22.2004 at 02:47PM PST, ID: 10179305

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.22.2004 at 03:23PM PST, ID: 10179646

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.22.2004 at 04:05PM PST, ID: 10180055

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.22.2004 at 04:38PM PST, ID: 10180235

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.22.2004 at 04:39PM PST, ID: 10180245

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.22.2004 at 04:47PM PST, ID: 10180283

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.22.2004 at 05:39PM PST, ID: 10180615

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.23.2004 at 07:56AM PST, ID: 10184827

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.23.2004 at 10:59AM PST, ID: 10186789

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.23.2004 at 01:04PM PST, ID: 10187746

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Cascading Style Sheets (CSS)
Tags: prevent, wrapping, css
Sign Up Now!
Solution Provided By: seanpowell
Participating Experts: 2
Solution Grade: A
 
 
[+][-]01.23.2004 at 01:31PM PST, ID: 10187919

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.23.2004 at 01:44PM PST, ID: 10187995

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.23.2004 at 02:05PM PST, ID: 10188152

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.23.2004 at 02:07PM PST, ID: 10188164

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.23.2004 at 02:11PM PST, ID: 10188190

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.23.2004 at 02:19PM PST, ID: 10188240

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32