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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:51:52+00:00 2026-05-22T16:51:52+00:00

I know this is a sort of a common problem, and I looked up

  • 0

I know this is a sort of a common problem, and I looked up some solutions, but couldn’t find exactly what I was looking for.

I would like to convert this to a tableless layout.

enter image description here

Note: header and footer have to be set to a fixed height in pixels (50px is ok).

The main problem I’m having is that I cannot get that “big box” in the middle to behave like it does when it’s done with tables. There are solutions which work OK for a variable length content (text, images), but I would like this box look and behave like a box – with borders, rounded corners and all.

  • 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-22T16:51:52+00:00Added an answer on May 22, 2026 at 4:51 pm

    You can do it with table style CSS properties, but still retain table less markup (which is still a win).

    Example

    Example

    HTML

    <div id="container">
        <div id="header"><div>header</div></div>
        <div id="content"><div>content</div></div>
        <div id="footer"><div>footer</div></div>
    </div>
    

    CSS

    html,
    body {
        height: 100%; 
        padding: 0;
        margin: 0;
    }
    
    #container {
        display: table; 
        width: 100%;
        height: 100%;
        border: 1px solid red;   
        text-align: center;
    }
    
    #container > div {   
        display: table-row;   
        width: 100%;
    }
    
    #container > div > div {   
        display: table-cell;   
        width: 100%;
        border-radius:10px; 
    
    }
    
    #header > div {
        height:50px; 
        border:solid 2px #aaa;
    }
    
    #content > div {
        height: 100%;    
        background:#f0f4f0; 
        border:solid 2px #5a5;
    }
    
    #footer > div {
        height:50px; 
        border:solid 2px #a55;
    }
    

    jsFiddle.

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

Sidebar

Related Questions

I know this sort of code is not best practice, but nevertheless in certain
(I know this is a sort of lazy question, but it's oddly hard to
I know this must be a common question, but take a look: Here i
I am sure that this must be quite a common problem so I would
I know this question is incredibly common, but I'm asking the following (Google yields
Know this might be rather basic, but I been trying to figure out how
I know this might be a no-brainer, but please read on. I also know
I know this isn't strictly a programming question but y'all must have experienced this.
I know this is a broad question, but I've inherited several poor performers and
I know this is not programming directly, but it's regarding a development workstation I'm

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.