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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:01:05+00:00 2026-05-22T17:01:05+00:00

This is similar to a question I’ve asked previously , but with a twist.

  • 0

This is similar to a question I’ve asked previously, but with a twist.

I have some content that I’d like to represent semantically in HTML as a list. Each entry in this list has variable content on the left hand side and variable content on the right-hand side. This jsfiddle represents an example of my efforts so far, but you can see that depending on the width of the window and the amount of text on the left-hand side, some of the content can bleed through to the next line.

Here are my requirements:

  1. The width of the whole list must be able to resize to fit the width of its container.
  2. The width of the left-hand “cells” should be the same. I am willing to make it fixed, but a percentage of the width is preferable.
  3. Each row needs to resize itself to fit the height of the items in whichever of the two “cells” is tallest.

Do I need to just bite the bullet and make this a table, or is there some HTML/CSS guru out there that can show me how this is done?

  • 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-22T17:01:06+00:00Added an answer on May 22, 2026 at 5:01 pm

    Name/Date (aside) comes before the paragraph in this version, but it allows for a percentage width on the aside. It can also be resized to virtually any size without any rendering issues (unless the width of a column is less than the longest word, in which case you probably have a much bigger issue to deal with).

    The CSS:

    <style>
    
    /* HTML Block Elements - For Older Browsers */
    article,
    aside,
    footer,
    header,
    nav,
    section {
     display:block;
    }
    
    /* Basic Structure - DONT EDIT */
    .transaction-history-list li {
     overflow:hidden;
    }
    .transaction-history-list li > aside {
     float:left;
     /* Uncomment for equal height (background)
        Buggy in IE7
      padding-bottom:10000px;
      margin-bottom:-10000px;
     */
     overflow:hidden;
    }
    .transaction-history-list li > div {
     /* Uncomment for equal height (background)
        Buggy in IE7
      padding-bottom:10000px;
      margin-bottom:-10000px;
     */
     overflow:hidden;
    }
    
    
    /* Width of Aside */
    .transaction-history-list li > aside {
     width:20%; /* Width of aside */
    }
    .transaction-history-list li > div {
     margin-left:20%; /* Width of aside */
    }
    
    
    /* Misc Styles */
    .transaction-history-list {
     list-style:none;
     border-bottom:1px solid #ccc;
     padding:0 0 5px 0;
     margin:0;
    }
    .transaction-history-list li {
     padding:5px 0 0 0;
     margin:5px 0 0 0;
     border-top: 1px solid #ccc;
    }
    .transaction-history-list li > div {
     /* Right column */
     padding-left:10px;
    }
    .transaction-history-list li > aside {
     /* Left column */
    }
    .transaction-history-list time {
     display:block;
     color: #999;
     font-size: .8em;
     margin:2px 0 0 0;
    }
    .transaction-history-list p {
     display:block;
     color: #333;
     font-family:sans-serif;
     font-size: .8em;
     margin:4px 0 0 0;
    }
    
    </style>
    

    In the HEAD (to enable html5 elements in older IE):

    <!--[if lt IE 9]>
    <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    

    And in the BODY:

    <ol class="transaction-history-list">
     <li>
      <aside>
       <span>Some User</span>
       <time>5/25/2011 10:52 PM</time>
      </aside>
      <div>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam in tellus orci. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut aliquet lorem vitae nulla faucibus rutrum. Phasellus et tellus sit amet turpis feugiat bibendum nec laoreet urna. Etiam vitae leo elit, vel feugiat diam. Sed a augue urna. Nunc semper, nulla vel imperdiet tempor, ante enim dignissim dui, ut vehicula enim felis ut sem.</div>
     </li>
     <li>
      <aside>
       <span>Some User</span>
       <time>5/25/2011 10:52 PM</time>
       <p>This column also supports long content.</p>
      </aside>
      <div>Created in Starting Activity and assigned to Some User.</div>
     </li>
     <li>
      <aside>
       <span>Some User</span>
       <time>5/25/2011 10:52 PM</time>
      </aside>
      <div>Created in Starting Activity and assigned to Some User.</div>
     </li>
    </ol>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is similar to a question that has already been asked. However, I am
I'll preface this question with the note that I have looked at this similar
Helo Experts again. I have asked a question similar to this in the past.
I have already looked at this similar question but i am still wondering if
I found this similar question here , but this is really old. Was it
This is a similar question to this one . I would like to convert
This is similar to this question , but I want to include the path
This is similar to this question, except the code is already written. I have
This is similar to this question I asked last week. My dataGrid is populated
This is similar to this question , but I thought I'd reword it a

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.