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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T19:24:02+00:00 2026-05-20T19:24:02+00:00

This is something that I figure should be straightforward, but I can’t seem to

  • 0

This is something that I figure should be straightforward, but I can’t seem to figure it out, and spending a couple of hours on a single list is driving me nuts.

What I’m trying to do is create a 2-column list, with “labels” on one side, and values on the other. I can get it to work if I leave font weights normal, or have both sides bold, but as soon as I make the labels bold and values normal, it staircases.

A screenshot of it with bold
A screenshot without bold

The applicable CSS:

ul.info {
    margin: 0;
    padding: 0;
    list-style: none;
}

ul.info li.name {
    width: 150px;
    float: left;
    font-weight: bold;
}

ul.info li.value {
}

The HTML:

<ul class="info">
    <li class="name">Member Since</li>
    <li class="value"><?=$user->registerTime ?></li>

    <li class="name">Last Logged in</li>
    <li class="value"><?=($user_login !== null ? $user_login->login_time : 'Never') ?></li>

    <li class="name">Email verified?</li>
    <li class="value"><?=($user->emailVerified ? 'Yes' : 'No') ?></li>
</ul>

I’ve narrowed it down to the bold, but it doesn’t make sense why that would break it. Any ideas?

  • 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-20T19:24:03+00:00Added an answer on May 20, 2026 at 7:24 pm

    I suspect it will be down to the bold elements having extra vertical space being added somehow, which would explain why the floating isn’t becoming staggered. Do you have a consistent line-height property applied to the list elements?

    You’d be much better off using a definition list, rather than an unordered list. That way you can style dt and dd elements entirely separately, with the added advantage of your markup being much more semantic.

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

Sidebar

Related Questions

I am new to .NET, and I'm can't seem to figure out something that
I'm just starting out in JSF, looks awesome, but I can't seem to figure
This seems like something that should be painfully obvious, but for whatever reason I
This is something that I have always wondered about, but never bothered to profile.
This is something that's I've wanted to know recently, mostly out of curiousity. I'm
This is something that I solved using reflection, but would like to see how
I have a crazy situation that I cannot figure out: I have this string:
I'm trying to figure something out regarding how I can create communication between 2
I apologize for asking such a generalized question, but it's something that can prove
I'm having the hardest time figuring out something that seems like it should be

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.