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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T11:24:57+00:00 2026-05-12T11:24:57+00:00

This is my markup, I need to align gray label under the blue label

  • 0

This is my markup, I need to align gray label under the blue label and keep the number aligned with blue label.

CSS:

body
{
    font-family: arial, helvetica, sans-Serif;
}


#talkbacks .noshow
{
    clear: both;
    display: table; /*padding-left: 14px;*/
    line-height: 13px;
    width: 439px;
}


#talkbacks ul.top
{
    border: solid 1px #fff;
    margin: 0 -1px;
}

#talkbacks li
{
    width: 100%;
    margin-top: 11px;
}
#talkbacks ul
{

    clear: both;
}



.n
{
    color: #758888;
    float: left;
    font-size: 12px;
    padding-right: 8px;
    line-height: 15px;

}


.c
{
    /*float: left;*/
    width: 400px;
}

.d
{
    font-weight: bold;
    color: #758888;
    font-size: 12px;
    line-height: 15px;
    margin: 0;
    padding: 0;
}


ul
{
    list-style-image: none;
    list-style-position: outside;
    list-style-type: none;
    padding-left:0px;
    margin-left:0px;
}
a
{
    font-size: 12px;
    line-height: 15px;
    font-weight: bold;

}

a:link, a:visited
{
    color: #284D99;
    text-decoration: none;
    outline: none;
}
a:hover, a:active
{
    text-decoration: underline;
}

Markup:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
  <head>
    <title>Test</title>
  </head>
  <body>
    <ul>
        <li>
            <div class="noshow">
                <div class="n">
                    <span id="ctl03_ctl00_ctl00_lblCommentNum">12.</span>
                </div>
                <div class="c">
                    <a href="javascript:__doPostBack('ctl03$ctl00$ctl00$LinkButton1','')" id="ctl03_ctl00_ctl00_LinkButton1"
                        onclick="viewHide(this);return false;">title3</a>
                    <p class="d">
                        marc,03/09/2009 12:23:40</p>
                </div>
            </div>
        </li>
    </ul>
    <ul>
        <li>
            <div class="noshow">
                <div class="n">
                    <span id="ctl03_ctl01_ctl00_lblCommentNum">12.</span>
                </div>
                <div class="c">
                    <a href="javascript:__doPostBack('ctl03$ctl01$ctl00$LinkButton1','')" id="ctl03_ctl01_ctl00_LinkButton1"
                        onclick="viewHide(this);return false;">blabla</a>
                    <p class="d">
                        bob,03/09/2009 12:23:55</p>
                </div>
            </div>
        </li>
    </ul>  </body>
</html>
  • 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-12T11:24:58+00:00Added an answer on May 12, 2026 at 11:24 am

    Swap out the class styles for these particular fixes:

    .n
    {
        color: #758888;
        float: left;
        font-size: 12px;
        padding-right: 8px;
        line-height: 15px;
        width:15px;
    }
    

    Added a width to the DIV holding the number. Doesn’t hurt to mark out the width of a floated element. You don’t have to have it if you don’t want to.

    .c
    {
        float: left;
        width: 400px;
    }
    

    Uncommented out the float:left; that you had. This will allow the text that you have in this particular DIV float to its left and butt up against the earlier, .n class which is holding the number.

    .noshow
    {
        overflow:hidden;
        clear:both;
    }
    

    This is the important part. The first line will keep the child elements inside their parent DIV and not go wild. Otherwise, you’ll see the rest of the document stepping. The second line just makes sure that the DIV will keep on its own line.

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

Sidebar

Ask A Question

Stats

  • Questions 235k
  • Answers 235k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Role = (UserRole)reader["Role"] Presumably UserRole is a type you have… May 13, 2026 at 6:06 am
  • Editorial Team
    Editorial Team added an answer Use stdio, i.e. fopen(), fgets() and fclose() to do the… May 13, 2026 at 6:06 am
  • Editorial Team
    Editorial Team added an answer You can use the CreateToolhelp32Snapshot function to enumerate the running… May 13, 2026 at 6:06 am

Related Questions

This is a challenge for the css gurus out there. I want to show
I learned that by trying to use the tablesorter plug in from jquery the
Ok. This is probably a really stupid question, but I'm going to ask it
I have ASP.Net code similar to the following (this is inside a FIELDSET): <ol>

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.