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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:25:30+00:00 2026-05-24T05:25:30+00:00

I know this topic’s been close to done to death and the answer is

  • 0

I know this topic’s been close to done to death and the answer is pretty unequivocally “div/css” (you fool!) and I swear I want to be good and strictly use divs, but seriously tables give me quick reliable layout solutions for a handful of cases.

It makes me sad that these things are so hard using css, but so easy with tables? What do I do? What are my alternatives?


case 1: must space evenly across certain width (eg 100%)

My client wants a horizontal menu that’s 100% and spaces evenly across that width, where they have can add or remove items themselves (ie I’m not always going to be there to get the spacing right for them) — this is a common design, really what is my alternative to a table here?

100%
<-------------------------------------------------------------------------->
div/css:
------------------------------------------------------------
| menu item | super long menu item | menu item | menu item |
------------------------------------------------------------
table:
----------------------------------------------------------------------------
|   menu item   |   super long menu item   |   menu item   |   menu item   |
----------------------------------------------------------------------------

NB this is not a case where float: left <li> will work as the spacing will be all wrong. This question is about determining the width of the element dynamically (without going mad or having to use js or both).


case 2: reliable liquid columns (with 100% height)

div/css: 50 lines — cut/paste from a liquid 2 column generater from the internet (pagecolumn.com)
http://dpaste.com/hold/579540/

table: 40 lines
http://dpaste.com/hold/579538/

Maybe it’s just me but the table version looks way more sane — like it has less strange wrappy action.

I know the table version isn’t going to bork in 99% of cases (it will never ever, not even on the most insane browser do the pop-below trick if the browser decides to change its interpretation of margins/paddings).

I know that both columns will show even if the browser window is <250px wide.

Blow-for-blow why would I choose the css solution in this case?


There were a couple more (like vertical-align which is just a cheap shot) but what it boils down to and the answer I’m looking for is this:

In my mind when I sit down to make a new website and consider these things the div/css argument is not strong nor reliable enough. I want to go that way but my instinct says that in the long term there-be-dragons.

Tables are reliable for layout. I feel like I’m trading in for an inferior product. Floats, z-indexes and positions whilst being really fun and interesting don’t feel like work-horses for real production websites with nuffy IE-using clients in the real world.

Tell me how ditching tables will make some other part of my production/design process solid and easier.

Give me some practical non-esoteric benefits.

I’m seriously trying to change my way of thinking, and yet the tables-devil on my shoulder seems to win this discussion for me every time. Help me stackoverflow.

  • 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-24T05:25:30+00:00Added an answer on May 24, 2026 at 5:25 am

    If you need pixel perfect IE6/7 support, then fine: using tables is easier for the cases you’ve listed above.

    However, in IE8+ and all modern browsers, you have display: table, which mostly solves the problem without all the downsides of actually using tables.

    For example: How to make children auto fit parent's width only with CSS?

    Because IE6/7 are not that important (and their market share is rapidly dropping), I would solve the question above by using display: table-cell, and using a JavaScript/jQuery fallback for only IE6/7.

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

Sidebar

Related Questions

I know this topic has probably been done to death, but I've been unable
I know this topic has been discussed to death, but there is one thing
I know this topic has been beaten to death a little on SO, but
I know this topic has been beat to death but a lot of the
I know this topic is done to death but I am at wits end.
I know that this topic has been beaten to death, but it seems that
I know this topic has been discussed but I think it has some differences.
This is my first post. I know this topic has been discussed before in
I know this topic has been covered ad nauseam here, and other places on
I know this topic has been asked, but the posts are all out of

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.