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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T14:35:11+00:00 2026-06-09T14:35:11+00:00

I have a problem with the Height Tag in CSS. I want the page

  • 0

I have a problem with the Height Tag in CSS. I want the page to be displayed without any scrollbars and just can’t figure out why when i change “height” in the body tag from 99% to 100% suddenly scrollingbars appear and break the design.

I want to know why this happens and what’s the reason for it.

thanks!

<!DOCTYPE html>
<html>
<head>
<style type="text/css">

html {
    height:100%;
}

body {
    height: 99%;
    margin-left: 20px;
    margin-top:0px;

}

.gallerytitle {
    position: absolute;
    top: 20px;
    font-family: serif;
    font-size: 20px;
    text-align: left;
}

.fullgallerytitle {
text-align: left;
font-family: sans-serif;
font-size: 12px;}

.events{
position: absolute;
font-family: sans-serif;
font-size: 12px;
top: 20px;
right: 20px;}

/* Center Text Section */

.area {
  width: 100%;
  height: 100%;

  position: relative;
}

.middlespace {
  position: absolute;
  left: 50%;
  top: 50%;
  display: table;
}

.middlespace p {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
}



.bottom-left {

    position: absolute;
    font:sans-serif;
    bottom: 15px;
    left: 15px;
}



.contact {
    font-size: 11px;
    font-family: sans-serif;
    border-bottom: 1px black dotted;
}

.exhibitiontitle {
    color: #d4d4d4;
    font-style: italic;
    font-family: sans-serif;
    font-size: 10px;
    text-align: center;
}

.contact {
    font-size: 11px;
    font-family: sans-serif;
    border-bottom: 1px black dotted;
}

.bold {
    font-family: serif;
}


.about {
    font-size: 11px;
    font-family: sans-serif;
}


.address {
font-size: 11px;
border-bottom: 1px grey dotted;
}




.bottom-right {
    position: absolute;
    bottom: 15px;
    right:15px;
      font-style: italic;
    color: #8e8e8e;
    font-size: 11px;
}

.openinghours {
    font-style: italic;
    color: #8e8e8e;
    font-size: 11px;
    }
.subscribebutton
{

height:10px;
font-size: 9px;

}

.subscribebox
{

height:10px;
font-size: 9px;

}



</style>

<title>XYZ</title>

</head>
<body>
    <div class="gallerytitle">XYZ<br /></div>
    <div class="events">LOREM</div>




<div class="bottom-left">
        <span class="about">

            <span class="bold">XYZ</span> is a project by XZY.&nbsp;&nbsp;&#124;&nbsp;
            <span="address">Website Information</span> &mdash; <a href="mailto:info@info.eu">info@info.com</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;


        </span>
</div>


<div class="bottom-right">
    <span class="openinghours">Open by Appointment</span><span class="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sponsored by XYZ</span>
</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-09T14:35:12+00:00Added an answer on June 9, 2026 at 2:35 pm

    There is also bottom margin on the body.

    body {
        height: 100%;
        margin: 0 0 0 20px;    
    }
    

    Though you should consider using a css reset such as eric meyers reset or normalize

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

Sidebar

Related Questions

Just have a small css problem... I have a couple of divs within a
Hi I have problem with html height. My height is now set to pixels
i have problem with image vertical-align in div .img_thumb { float: left; height: 120px;
I have a problem with two Textviews on the same height in a RelativeLayout
I have a little CSS problem. This occurs in IE, FF and Chrome. However
I have put together an example page detailing my problem My website is going
i have a problem with overflow:hidden and the body tag. Here is a little
I have the following problem. I have done the following: In my css file,
Using CSS, I'm trying to specify the height of a span tag in Firefox,
I have a problem. The designer I hired did not separate out the logo

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.