Jump to content

Issues with div positioned to the bottom of page


lostprophetpunk

Recommended Posts

Heya, I have a div that is sort of a 'feature' thing at the bottom of the web page.

 

However, the problem that arises that even though I have set it to 'bottom: 0;', it does not entirely line up with the bottom of the page. It leaves about a 20-30px gap at the bottom of the page.

 

I have already tried 'position: absolute' and 'position: fixed' for the '#feature' div, and they have both been unsuccessful as they push the div up to the other content.

 

Here are the pieces of codes involved...

 

#feature {
width: 100%;
height: 300px;
background-color: #38362c;
bottom: 0;
border-top: 2px solid #8c8a80;
margin-top: 40px;	
}

#designs {
width: 900px;
height: 300px;
margin: auto;
margin-top: 30px;
}

.latest {
width: 266px;
height: 96px;
background-color: #000000;
border: 2px solid #cccccc;
float: left;
margin-left: 20px;
}

.latestinfo {
width: 260px;
height: 90px;
font-family: georgia;
font-size: 1.2em;
text-align: left;
color: #cccccc;
float: left;
margin-left: 20px;
padding: 5px;
}

 

<div id='feature'>
<div id='designs' align='center'>
<div class='latest'></div>
<div class='latest'></div>
<div class='latest'></div>
<div class='latestinfo'></div>
<div class='latestinfo'></div>
<div class='latestinfo'></div>
</div>
</div>[/html]

 
If anyone could help, I would be truly thankful.

Link to comment
Share on other sites

do you have the page available to view online? we would need to see all markup and css as what you have provided has none of the details about the parent containers we would need

There are no parent divs to those that are shown. All of the CSS and HTML provided is connected to the problem, and is not affected by other divs.

 

I have uploaded the page online...

 

Link

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.