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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T21:31:13+00:00 2026-06-07T21:31:13+00:00

Im a newbie to CSS and created this html file for my testing…but the

  • 0

Im a newbie to CSS and created this html file for my testing…but the results are not what I expected..

Here are my questions,

  1. What would be the correct width of my IE window.
  2. What would be the perfect height of my window..When I specify a value nothing changes.
  3. I have created 3 divisions- Header, Footer and content..When I view it..there is a big space between each of these sections..Why do they occur?

Code follows:

<!DOCTYPE html>
<html>
    <head>
        <style type="text/css">
            body
            {
                background-color:#d0e4fe;
                width:1400px;
                height:1000px;
            }

            h1
            {
                color:orange;
                text-align:center;
            }

            #div-1
            {
                background-color:red;
            }
            #div-2
            {
                background-color:Green;
            }
            #div-3
            {
                background-color:Blue;
            }


        </style>

    </head>

    <body>

        <div id="div-1">
            <h1>Header<h1>
        </div>

        <div id="div-2">
            <h1>Content<h1>
        </div>

        <div id="div-3">
            <h1>Footer<h1>
        </div>


    </body>
</html>
  • 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-07T21:31:15+00:00Added an answer on June 7, 2026 at 9:31 pm

    First, you don’t define the width or height of the window in CSS. It just doesn’t happen. You may specify the width of particular elements on your page, but that is a slightly different matter. Remove your height and width properties.

    Second, your divisions have spaces between them due to the default margins that are set on h1 tags. If you want to remove them, then set margin: 0 on your h1 in your CSS.

    Third, you may want to check out this CSS tutorial at HTMLDog

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

Sidebar

Related Questions

I'm not a newbie to css and html, but totally not smart with php.
I am a newbie to html/css/javascript and code like this really scares me: http://code.google.com/apis/maps/documentation/javascript/overlays.html#InfoWindows
Newbie question here but for some reason I cant figure this out. I have
CSS newbie here. Strange thing is happening, I have gaps between links, and I
I'm newbie at TYPO3, trying to install my custom template. I have HTML/CSS/IMAGES files,
I'm a relative newbie to web development. I know my HTML and CSS, and
css/hmtl newbie here. I've been messing with divs and I'm getting some odd behavior
this is a newbie question for you guys. In file /home/myhome/apache-tomcat-6.0.29/webapps/view/test.jsp I have <link
I'm a newbie in CSS layout. I need to display content like this: +-------------------------------------+
i am a newbie of html and css.now i want to know other gurus

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.