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

  • Home
  • SEARCH
  • 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 8044329
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T05:11:40+00:00 2026-06-05T05:11:40+00:00

the behaviour problem explained in the title is understandable but I need a workaround.

  • 0

the behaviour problem explained in the title is understandable but I need a workaround.

I made an example in JSfiddle: http://jsfiddle.net/TBXr4/2/

See in the first LI I have a couple of words. They are not getting lined up like I need them to but they are getting listed. How do i resolved this?

Let me make this a little more specific, I don’t want to set the width of the child UL manually, in fact I don’t want one to be set. I need a way sothat the parent UL will have a width set whilst the child UL will be the smallest possible width to inherit the text.

  • 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-05T05:11:42+00:00Added an answer on June 5, 2026 at 5:11 am

    You could just set the white-space property of the li element:

    li {
        /* other stuff */
        white-space: nowrap;
    }
    

    JS Fiddle demo.

    The problem with this is that while the text will be visible outside of the parent ul‘s assigned width, the style of the li (it’s background-color / background-image) won’t carry over.

    References:

    • CSS white-space property.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is better explained in: http://jsfiddle.net/tRBaV/1/ I have two kinds of entities: containers and
I seem to stumble on problem after problem giving my entities behaviour. I have
I am experiencing a strange behaviour of my application in Chrome browser (No problem
I think the issue is explained best with an example. public class MyService {
Can someone explain this WPF behaviour? <Page xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml> <Grid> <!-- Rounded mask -->
It's hard to explain in a single line, my problem is that I need
I need to abstract some behavioural code and have a problem trying to reference
I am facing a peculiar problem related to a hosted WCF service (.NET Framework
I had the following (minor but nagging!) problem: I've got a PreferenceActivity with a
Sorry I couldn't really describe my problem much better in the title. I am

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.