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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T13:59:45+00:00 2026-05-30T13:59:45+00:00

In the html below ‘Rome’ is appearing below ‘Place’ from the second line, how

  • 0

In the html below ‘Rome’ is appearing below ‘Place’ from the second line, how do I prevent that?

http://jsfiddle.net/JqxTx/21/

Thanks,
Chris.

  • 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-05-30T13:59:47+00:00Added an answer on May 30, 2026 at 1:59 pm

    You could either go with hanging line indent or CSS3 columns, though regarding the latter you’ll have to do some investigation as to whether they’re useful in this scenario.

    I usually go with old-style

    <table>
        <tr>
            <td><label>Label</label></td>
            <td><span>Text</span></td>
        </tr>
    </table>
    

    since it’s simple, it works, and though there’s a bit of redundant code, it doesn’t promote nesting and it’s not that big of a mess.
    I still fail to see any good, simple equivalent CSS replacement for this layout scheme.
    The best one probably is either

    <label style="float: left; width: 20%;">Label</label>
    <span style="float: left; width: 80%;">Text</span>
    

    or

    <label style="position: absolute; width: 20%;">Label</label>
    <span style="display:block; padding-left: 20%;">Text</span>
    

    You could probably find more here or in the answer to this question.
    But they’re not as good as the table because they don’t adapt to the first column’s contents.

    Hacks like

    <label style="float:left; height: 2em;">Label</label>
    <span>Text</span>
    

    or

    <label style="display:block; float:left;">Label</label>
    <span style="display:block; float:left; width:90%;">Text</span>
    

    work but I wouldn’t recommend them because they both rely on certain screen dimensions.

    G’luck.

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

Sidebar

Related Questions

I have the html below: <span class=srch-URL> <a id=CSR_U_2 href=http://www.test.com/TestForm.aspx>http://www.test.com/TestForm.aspx</a> </span> I am trying
Given the HTML below, I need a jQuery selector that selects the <option> with
After looking through tutorial on http://oreilly.com/catalog/expjava/excerpt/index.html below is what I have written. I wanted
Having the HTML below <!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd> <html xmlns=http://www.w3.org/1999/xhtml>
In the html below, first object is using url of original video copied from
Please see the HTML below: <html xmlns=http://www.w3.org/1999/xhtml> <head runat=server> <title></title> <style type=text/css> html, body
In the html below I want the third div so that it is in
I have the HTML below <span class=post-labels> <a href=http://myblog.blogspot.com/search/label/jQuery%20Downloads>jQuery Donwloads</a> <a href=http://myblog.blogspot.com/search/label/jQuery>jQuery</a> <a href=http://myblog.blogspot.com/search/label/mootools>mootools</a>
Given the HTML below, I am trying to use jQuery to match all the
In the HTML below, the layout works when the actionBar class has a float

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.