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

  • Home
  • SEARCH
  • 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 7547051
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T09:21:18+00:00 2026-05-30T09:21:18+00:00

I am attempting to recreate a table using block elements (in this case an

  • 0

I am attempting to recreate a table using block elements (in this case an unordered list). I want one of those items to fill the parent element. This was very easy in tables. I’d just set the table to be 100% and not specify a width of whichever cell I’d like to fill the parent. How can I do this with block elements?

With tables it’s easy:

<table width="100%" border="1">
    <tr>
        <td width="200">200px</td>
        <td>nice wide column which fills the page</td>
        <td width="100">100px</td>
    </tr>
</table>

But using list items

<style>
    ul { 
        list-style-type: none; 
        padding-left: 0px; 
    }
    li { 
        float: left; 
    }
    .col1 { width: 200px; } 
    .col2 { } /* width: 100% doesn't work */ 
    .col3 { width: 100px; }
</style>

<ul>
    <li class="col1">200px</li>
    <li class="col2">tight column wrapping around this text</li>
    <li class="col3">100px</li>
</ul>

How can I make that center “column” fill the page?

  • 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-30T09:21:19+00:00Added an answer on May 30, 2026 at 9:21 am

    How about this?

    ul {
        display: inline-table;
    }
    li {
        display: table-cell;
    }
    .col1 {
        width: 200px;
    }
    .col2 {
    }
    .col3 { 
        width: 100px; 
    }​
    

    Proof it works: http://jsfiddle.net/zLvz5/

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

Sidebar

Related Questions

I am attempting to drop and recreate a database from my CI setup. But
Attempting to insert an escape character into a table results in a warning. For
Attempting to print out a list of values from 2 different variables that are
Attempting to use the data series from this example no longer passes the JSONLint
I'm attempting to recreate a time sheet built on asp and I can't figure
I'm attempting to create a T-SQL case statement to filter a query based on
I am attempting to recreate an effect that I found on ( another site
In trying to understand javascript best practices, I'm attempting to recreate a piece of
Attempting to profile the difference in runtime between 1+1 and 1x2 using Ruby and
Attempting to better understand chaining on a hashtable. Seeking a simple table that hashes

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.