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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T19:57:57+00:00 2026-06-12T19:57:57+00:00

I want to create a very simple liquid layout with 2 columns – the

  • 0

I want to create a very simple liquid layout with 2 columns – the one to the left will have a fixed width, and the one to the right will be dependent to the window size.

The layout will contain 4 elements – the header, navigation, content, and the footer.

I have a couple of questions according to the semantics of HTML5 elements here.

This is the code:

<body>
   <div id="container">
       <header>
          <div id="header">
             sadfsdf
          </div>
       </header>
       <nav>
          <div id="nav">
             gdfsgf
          </div>
       </nav>
       <article>
          <div id="article">
             gdffgdg
          </div>
       </article>
       <footer>
          <div id="footer">
             gdfsgf
          </div>   
       </footer>
   </div>
</body>

1) Is container div really necessery? What I do is:
HTML has font/lineheight properties
BODY has some margins and background images
CONTAINER contains the rest

Is it O.K. to put body stuff inside of html, and make body the container?

2) Are inner div’s in header, nav, … necessary? They are in there because I can then change padding, margins and borders without changing the width of the element. Should I rather set this width along with every changes?

  • 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-12T19:57:58+00:00Added an answer on June 12, 2026 at 7:57 pm

    1) If the container div is needed or not depends very much on your actual design, but from what I can see from what you have showed, it is not really necessary. What is body stuff?

    2) You have answered your question yourself. If you want to prevent an overflow because of padding, margin,border, keep it.

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

Sidebar

Related Questions

I have the following issue whith this very simple task. I want to create
I need to create a very simple app that has one table that will
I want to create a very simple javascript form validation. I have two input
I have created a very simple sharepoint timer job. All i want it to
I want to create a layout that has 6 TextViews on the very top,
I want to create a very simple window manager for Ubuntu using Ruby. Where
I want to create a very simple tab style that looks like this: _____
I want to create a very simple experimental programming language. What are some resources
I want to create a very simple search partial. It has a text box,
I have very little experience designing databases, and now I want to create 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.