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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:41:46+00:00 2026-06-18T03:41:46+00:00

Sorry for the silly question but for some reason this part of HTML/CSS layout

  • 0

Sorry for the silly question but for some reason this part of HTML/CSS layout always gets me…

I have a website at http://kdmalikdesign.com/test/LinguisticPeers/index.html. Just practicing HTML/CSS/jQuery and eventually PHP/Databases.

In chrome the footer ends up being way too long. In firefox the footer is about three times what I want it and in safari the same. Right now i have height 100% on the html and body so that the background image expands to everything that is showing.

To compensate for the footer (now being too long) will I have to make the main container a minimum length so the footer will accomodate the space? Is there a general design rule over this? or CSS rule?

Basically what is happening is I like the way the header and main container look but since it doesn’t fill the whole browser window it ends up making the footer wayyyy too long OR if html,body 100% isn’t there, there becomes a white space below the footer. My CSS code is below if you want to quickly check it.

The only heights are 100% on the html,body. The Header has a height of 100px and each container is 160px. The footer is also 55px.

html, body, div, header, footer, article, h2 {
    margin: 0px;
    padding: 0px;
}

html, body {
    height: 100%;
    background-image: url('images/bkg-img.jpg');
    background-repeat: repeat;
}
header {
background: #6888fd; /* Old browsers */
background: -moz-linear-gradient(top, #6888fd 0%, #1c46e9 55%, #0330e4 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#6888fd), color-stop(55%,#1c46e9), color-stop(100%,#0330e4)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #6888fd 0%,#1c46e9 55%,#0330e4 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #6888fd 0%,#1c46e9 55%,#0330e4 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #6888fd 0%,#1c46e9 55%,#0330e4 100%); /* IE10+ */
background: linear-gradient(to bottom, #6888fd 0%,#1c46e9 55%,#0330e4 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#6888fd', endColorstr='#0330e4',GradientType=0 ); /* IE6-9 */
height: 100px;
}

#background-container {
    padding-top: 50px;
    padding-bottom: 25px;
}

#container {
    margin: 0 auto;
    background-color: #587DFF;
    height: 230px;
    width: 830px;

    text-align: center;
    padding-top: 100px;

    -moz-border-radius: 25px;
    border-radius: 25px;
}

#article-container {
    width: 960px;
    margin: 0 auto;
}

article {
    border: 4px solid #9AADFA;
    background-color: #002DE2;
    color: #fff;
    width: 280px;
    height: 160px;

    float: left;
    margin-left: 30px;
    margin-top: 25px;
    /* 
            display:-moz-inline-stack;
display:inline-block;
zoom:1;
*display:inline;
    */
}

.clear {
    clear: both;
}

span {
    display: block;
    padding-top: 10px;
    color: #6D8EFF;
}

h2 {
    padding-left: 10px;
    padding-top: 5px;
}

p {
    padding-left: 5px;
    padding-right: 5px;
}

footer {
    text-align: center;
    border-top: 1px solid #7493FF;
    background-image: url('images/bkg-img.jpg');
    background-repeat: repeat;

    height: 55px;
}

nav {
    float: right;
    color: #84A0FF;
    position: relative;
    top: 60px;
    left: -75px;
}

nav ul {
    list-style-type: none;
}

nav ul li {
    display: inline;
    padding-left: 10px;
}

#login-container {
    float: right;
    padding-right: 50px;
    padding-top: 25px;
    color: #fff;
    position: relative;
    left: 450px;
}

#header-container {
margin: 0 auto;
    width: 960px;
    height: 100px;
}
  • 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-18T03:41:47+00:00Added an answer on June 18, 2026 at 3:41 am

    If you want the footer to stick to the bottom of the page, something like this might be helpful.

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

Sidebar

Related Questions

I am sorry if this is a silly question but I have been working
Sorry if this is a silly question but I have been on web design
Sorry, this question might sound silly, but I need some help! My project is
Sorry for this silly question, but is there any way to restrict using directives
Sorry if this is a silly question or if it's been answered already, but
Sorry if this question sounds a little silly, but I am not sure what
Sorry for such a trivial question, but I'd feel silly building this if it
I am sorry if it seems a silly question to you, but I have
Sorry, maybe this question is too silly or already answered, but I couldn't find
sorry for this if this is a silly question.but i need to know about

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.