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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T21:37:36+00:00 2026-06-03T21:37:36+00:00

I can’t quite seem to figure out how to do the CSS from the

  • 0

I can’t quite seem to figure out how to do the CSS from the Photoshop mockup that I made. The image below shows what I want to accomplish. Basically, each Design/Revision block is a styled <li> tag, and I want to float the title to the left and the date/time to the right. Furthermore, I want everything to be vertically aligned.

Any ideas? I tried to use a table within each <li>, but that didn’t seem to work (or I just did it wrong).

Ideas?

enter image description here

  • 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-03T21:37:37+00:00Added an answer on June 3, 2026 at 9:37 pm

    Please see this Fiddle, should be what you are trying to do!

    HTML

    <ul>
        <li>
            <a href="#" title="" class="clearfix">
                Design 1
                <span>May 6, 2012<br>11:34AM</span>
            </a>
        </li>
        <li>
            <a href="#" title=""class="clearfix">
                Revision 1
                <span>May 7, 2012<br>2:14AM</span>
            </a>
        </li>
    </ul>
    

    CSS

    body {
        background-color: #000;
        margin: 0;
        padding: 20px;
        font-family: sans-serif;
    }
    ul {
        list-style-type: none;
    }
    li {
        display: block;
        width: 240px;
        background-color: #212121;
        border: 1px solid #212121;
        border-top: 1px solid #444;
    }
    li a {
        padding: 10px;
        color: #fff;
        font-size: 18px;
        display: block;
        line-height: 24px;
        text-decoration: none;
    }
    li span {
        float: right;
        font-size: 10px;
        display: block;
        line-height: 12px;
        color: #999;
        text-align: right;
    }
    
    /* helpers */
    .clearfix:before,
    .clearfix:after  {
      content: '\0020';
      display: block;
      overflow: hidden;
      visibility: hidden;
      width: 0;
      height: 0;
    }
    .clearfix:after {
      clear: both;
    }
    .clearfix {
      zoom: 1;
    }
    

    Analise the CSS to learn more about float and document work-flow!

    Read more about it:

    CSS Float

    Document Flow / Visual Formating

    And the print screen:

    enter image description here

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

Sidebar

Related Questions

Can't seem to figure out what's wrong with the simple getJSON call below. It's
Can't figure out how to do this in a pretty way : I have
Does anyone know how can I replace this 2 symbol below from the string
Can we change the color of the divider? Apple documentations says, that we can
Can anybody tell me that what is suitable Xcode version for 10.6.8(snow leopard)?Does Xcode
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
Can MOSS integrate and get user profiles from multiple Active Directory and/or LDAP stores?
Can a Visual Studio 2008 custom tool be passed additional parameters from the custom
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
Can't work out a way to make an array of buttons in android. This

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.