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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T05:50:44+00:00 2026-05-25T05:50:44+00:00

I am working on a site and have a solid line appearing at the

  • 0

I am working on a site and have a solid line appearing at the bottom of the page.

The Problem: http://jsfiddle.net/mxh6G/

The Details: I have a container element which has height: 99%;. I have also set up a gradient background effect (using only CSS). Now, beneath my main container element, there is a block of solid colour which matches the colour of the upper half of the gradient fill. However, please note that this is not what is causing the problem as even when I remove the gradient section of the CSS altogether, the blank line is still visible (I have set the background-color: of my container element to red so that I can see if the problem still persists).

For example, if the gradient fades from red (top) to black (bottom), the solid line at the bottom of the page is red.

I have set the height to 100% and even up to 150% for my container element and the solid line is still there.

An example might be like this:

+----------------------+
|   _________________  |
|  |        C       |  |
|  |        O       |  |
|  |        N       |  |
|  |        T       |  |
|  |        A       |  |
|  |        I       |  |
|  |        N       |  |
|  |        E       |  |
|  |        R       |  |
+______________________|
|______________________| <--- solid line appears here 
                              (but narrower, approx 5px in height).

Hopefully this gives you all a rough idea of what the problem is.

My HTML is absolutely fine – I have checked it thoroughly and there are no elements outside of the container <div> element.

I know that there could be any number of solutions, so to simplify things, I would like to ask if there are any commonly-known (or not-so-commonly-known) problems related to CSS which could cause this to happen?

Or, better still, has anybody else had this problem and if so, how did you rectify it (if applicable)?

Thanks for your time.

Mick

UPDATE: Here is the problem: I have set the top margin of container to 5px and it results in the bottom of the page also displaying a 5px margin from the bottom. If I set it to 0, however, then the margin at the bottom of the page is also set to 0.

Could somebody possibly figure out why this is happening?

(NOTE: You have to extend the frames outwards to view the page as it is intended and to also see the problem).

http://jsfiddle.net/mxh6G/

  • 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-25T05:50:45+00:00Added an answer on May 25, 2026 at 5:50 am

    set this in css

    body{margin:0; padding:0;}
    

    or

    * {margin:0; padding:0;}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a site that I am currently working on in ASP.NET 2.0 using
I am working on this site: http://www.problemio.com and I have very little clue about
I'm working on a site now that have to fetch users feeds. But how
I my working on the site that will have image gallery. Designer idea was
I am working on a site where I have an accordian control for the
The Zend Framework based site I have been working on is now being migrated
I have a site I'm working on where I want to mark if a
I have a site setup that is working fine in ie8 and firefox but
I'm working on a site that allows users to purchase digital content and have
I'm currently working on an oophp application. I have a site class which will

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.