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 8972915
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T18:19:57+00:00 2026-06-15T18:19:57+00:00

I have the following structure: <ul> <li> <p style=width:10px;> Text goes here </p> </li>

  • 0

I have the following structure:

<ul>
<li>
<p style="width:10px;">
Text goes here
</p>
</li>
<li>
<p style="width:10px;">
Text goes here
</p>
</li>
</ul>

When the text of the p exceeds the 10px limit I would like it to continue in a new row.. How do i do that? Thanks

  • 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-15T18:19:58+00:00Added an answer on June 15, 2026 at 6:19 pm

    Your example already word-wraps (because<p> is already a block element), if you want to break words, then you could try:

    p.letters {
        word-wrap: break-word;
    }
    

    Here’s a basic working example: http://jsfiddle.net/G9z5M/ (see updates below).

    You can play around with it using various techniques:

    /* Wraps normally, on whitespace */
    p.words {
        word-wrap: normal;
    }    
    
    /* Hides non-wrapped letters */
    p.hidden {
        overflow: hidden;
    }
    
    /* Outputs a single line, doesn't wrap at all */
    p.nowrap {
        white-space: nowrap;
    }​
    

    See updated fiddle: http://jsfiddle.net/G9z5M/1/

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

Sidebar

Related Questions

I have the following structure <table cellspacing=0 cellpadding=0 width=100%> <tr> <td style=width:60px;> ... </td>
So let's say have the following content structure: <div class=wrapper> <div class=contentOne style=width:50px></div> <div
Say I have the following structure: <div id=top style=width:960px; height:400px; margin 0 auto; background-color:#F00;>
I have the following html structure. <ul> <script id=agendaTmpl type=text/x-jquery-tmpl> <li class=arrow boundElement style=height:40px;
I have table with following structure: <table style= margin-top: 10px; border: 1px wheat solid;
I have the following structure: <div class=parent> <div id=child1>Content here</div> <div class=child2>Content here</div> </div>
I would like to achieve the following structure: [gfhtfg..., kgjrfg..., asd, mrhgf, ] ^-------^
I have the following structure in my html : <div style='position:absolute; top:40px; left:0; height:cH;
I have a following problem here: in my html structure I got some div's
Suppose I have the following HTML code: <div id=container style=width: 960px> <div id=help_panel style=width:

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.