Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8885137
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T21:14:08+00:00 2026-06-14T21:14:08+00:00

A concrete example: I have a menu: a list, which shows daughterly lists on

  • 0

A concrete example:

I have a menu: a list, which shows daughterly lists on :hover over its elements. For such a daughterly list I didn’t set any specific width or height. I don’t want to set a fixed width for the daughterly list, but don’t want the linebreaks to occur as long as the daughterly menu entries can fit in one line, but for some reason browser does make the linebreaks after every word.

Most importantly, I wonder, what’s the algorithm of putting the linebreaks. Tried to read CSS2.1 specification, failed to find the answer so far. (clarification: the parental list is positioned relative, the daughterly one – absolute; no floats; parental list is displayed inline-block).

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T21:14:09+00:00Added an answer on June 14, 2026 at 9:14 pm

    Setting the whitespace on the li units should do what you want.

    li{white-space:nowrap;}
    

    As to how it’s deciding, it is setting it to the smallest possible width. In your case Header is the widest single element so it breaks there, if there were a word longer than header it would go to the width of that word.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an array of objects... for a concrete example, let's call the array
I have my list MF wich contains 105 lists. Every list, MF[[1]] MF[[2]] ....
To give a concrete example of what I mean: Imagine I have an HTML
Concrete Example: Abstraction of a controlling unit, which could also be a remote unit
Let me start with a concrete example. In C++, I have a hierarchy of
The concrete example being I have lots of specfiles with Source0 : or other
I have been looking this but haven't found a concrete example. Is there a
For example, we have table A, and table B which have a many-to-many relationship.
concrete example http://img246.imageshack.us/img246/602/6x7gridsm.png By address I mean the location if you were counting left
I can't find a concrete and COMPLETE example of what I'm looking for. In

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.