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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T05:30:22+00:00 2026-06-05T05:30:22+00:00

Ok, I leaned html & css back in 2001. I was used to do

  • 0

Ok, I leaned html & css back in 2001. I was used to do something like this (To create a website with a “vertical-column” layout):

<html>
<head>
    <title>Vertical-column layout</title>
</head>
<body>
<table id="doc" >
<!-- header -->
    <tr>
    <td id="header" colspan="3"><!-- header code/php include --></td>
    </tr>
<!-- / header -->

<!-- / content -->
    <tr>
    <td id="col1" name="menu"><!-- content code/php include --></td>
    <td id="col2" name="content_left"><!-- content code/php include --></td>
    <td id="col3" name="content_right"><!-- content code/php include --></td>
    </tr>
<!-- / content -->

<!-- footer -->
    <tr>
    <td id="footer" colspan="3"><!-- header code/php include --></td>
    </tr>
<!-- / footer -->
</table>
</body>
</html>

Easy, everything is automatically aligned the way I want, no css headache etc. Life was good back then. HOWEVER, not so long ago, I read that this approach should no longer be used. I was going to try a new way using a bunch of div’s, but w3c & w3c’s validation does not like you using block elements as inline elements…WTF!!!

So…my frustration lead me to ask you guys:

HOW? How to accomplish something like this in “modern way”…as easy as possible? Does html 5 has a better way?
WHY? Why is it that now we should not use this table approach to get a “vertical column layout” on a website?

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

    Below is a basic grid I cobbled together you can use with any size website. You’ll need to clear the floats on the columns with either overflow hidden or a clearfix. If your project doesn’t need to support IE7 you can use box-sizing border-box to add padding to your columns, otherwise add an extra element inside each column for padding.

    Whilst I can appreciate that making columns was super easy with tables that was pretty much the only thing they were better for layout wise.

    HTML:

    <!DOCTYPE HTML>
    <html lang="en-US">
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
    
        <header></header>
    
        <div class="content grid">
            <div id="col1" class="col s1of3"></div>
            <div id="col2" class="col s1of3"></div>
            <div id="col3" class="col s1of3"></div>
        </div>
    
        <footer></footer>
    
    </body>
    </html>
    

    CSS:

    .grid {
    }
        .grid .col { float: left; }
    
        .grid .col.s1of1 { width: 100%; }
        .grid .col.s1of2 { width: 50%; }
        .grid .col.s1of3 { width: 33.33333333%; }
        .grid .col.s2of3 { width: 66.66666666%; }
        .grid .col.s1of4 { width: 25%; }
        .grid .col.s3of4 { width: 75%; }
        .grid .col.s1of5 { width: 20%; }
        .grid .col.s2of5 { width: 40%; }
        .grid .col.s3of5 { width: 60%; }
        .grid .col.s4of5 { width: 80%; }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently I have a url like this http://<client_name>.website.com/index.php?function_name&cat=32 I want to set things up
If we've learned anything from HTML/CSS it's that, declarative languages (like XML) do a
I'm a beginning coder, learned CSS, HTML, and Jquery in an internship this summer.
I learned HTML and CSS about 8 months ago, and recently, about 2 months
I've learned CSS and HTML, what should I learn next if my goal is
I have learned the language itself as well as html/css/javascript. But with no database
I just learned ruby, and already have some html/javascript/css background. When i learn rails
I can't use the basic $('#div').html(value); to change the text of a div like
Back when I learned HTML, CGI was king, and the proper way to interact
I've learned that it's possible to embed an image in an HTML page like

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.