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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T12:29:26+00:00 2026-06-11T12:29:26+00:00

I am trying to learn css. up to now I have been lagging behind

  • 0

I am trying to learn css. up to now I have been lagging behind and using tables to manage my page layout.

I want to migrate to css but am having a few issues aceiving this.

My current page layout using a table:

enter image description here

I tried to recreate this layout using css as per code below:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html lang="en">
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>page layout</title>
    <style type="text/css">

        html, body {
            text-align:center;
        }

        #wrapper {       
            margin: 0 auto;       
            width: 1200px; 
            text-align:left;}

        #header {
            height: 100px;
            overflow: auto;
            background: green;
        }

        #main {
            background: yellow;
            float: left;
            width: 800px;
            height: 400px
        }

        #menu {
            background: red;
            float: left;
            width: 200px;
            height: 200px
        }

        #pics {
            background: brown;
            float: left;
            width: 200px;
            height: 200px
        }
        #pics {
            background: brown;
            float: left;
            width: 200px;
            height: 200px
        }
        #adverts {
            background: pink;
            float: left;
            width: 200px;
            height: 400px
        }

        #footer {
            background: grey;
            float: left;
            width: 1200px;
            height: 100px
        }


    </style>

</head>
<body>
<div id="header">
    Header
</div>

<div id="menu">
    menu
</div>
<div id="pics">
    pics
</div>
<div id="main">
    main
</div>

<div id="adverts">
    adverts
</div>

<div id="footer">
    footer
</div>

</body>
</html>

This produces the following output:
enter image description here

As you can see the pics div is in the incorrect place, this should be under the menu div not at the bottom of the page?

My questions, how do I get the pics div in the correct place? and secondly how do I center the entire page?

Lastly, is this the best method of managing my page layout? what will happen in the event that my ‘main’ div is too full of information? will it autoadjust its height in order to display all the info? is this what the overflow: auto will allow?

Appreciate the help as always,
R

  • 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-11T12:29:28+00:00Added an answer on June 11, 2026 at 12:29 pm

    Your pics div is out of sequence. It needs to appear before the footer div:

    You have this:

    <div id="footer">
        footer
    </div>
    
    <div id="pics">
        pics
    </div>
    

    You need to have this:

    <div id="pics">
        pics
    </div>
    
    <div id="footer">
        footer
    </div>
    

    In order to get the menu and pics divs arranged the way you want, create a div that wraps (contains) them both (menupics in my CSS/HTML below).

    This code works just as you have it laid out above:

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
    <html lang="en">
    <head>
       <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
        <title>page layout</title>
        <style type="text/css">
    
            html, body {
                height: 100%;
                width:1200px;
                text-align:center;
            }
    
            #header {
                height: 100px;
                overflow: auto;
                background: green;
            }
    
            #main {
                background: yellow;
                float: left;
                width: 800px;
                height: 400px;
            }
    
            #menupics {
              float: left;
              width: 200px;
              height: 400px;
            }
    
            #menu {
                background: red;
                float: left;
                width: 200px;
                height: 200px;
            }
    
            #pics {
                background: brown;
                float: left;
                width: 200px;
                height: 200px;
            }
    
            #adverts {
                background: pink;
                float: left;
                width: 200px;
                height: 400px;
            }
    
            #footer {
                background: grey;
                float: left;
                width: 1200px;
                height: 100px
            }
    
    
        </style>
    
    </head>
    <body>
    
    <div id="header">
        Header
    </div>
    
    <div id="menupics">
      <div id="menu">
        menu
      </div>
      <div id="pics">
        pics
      </div>
    </div>
    
    <div id="main">
        main
    </div>
    
    <div id="adverts">
        adverts
    </div>
    
    
    <div id="footer">
        footer
    </div>
    
    </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi I am trying to learn CSS and have been looking at the source
I have been trying to learn horizontal lists in html. I have the following
I am trying to learn and use html5 and have a basic layout but
I am trying to learn more CSS. I inherited a nice layout that I
Trying to learn a bit of CSS and I want a horizontal navbar and
Im trying to learn to build navigation menus using css. Ive stripped loads of
I have been trying to get this code to work for a while now
Trying to learn html/css. I've been looking at the html & css files of
I'm trying to learn how to line up fields of a form using CSS
Trying to learn about php's arrays today. I have a set of arrays 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.