Align div to bottom immediately after other divs

Posted on 2008-10-07
Last Modified: 2012-05-05
Hey Experts!!
I have a page (URL above) in which I want to put a footer IMMEDIATELY following the content div.  Basically where the #footer div is placed directly below the #content div

How can I do this so that my background image shows in all browsers?????

Relevant CSS below  
#content {





	margin-right: auto;

	margin-left: auto;

	padding: 6px;

	left: 25%;

	top: 207px;

	right: 25%;

	background-color: #FFFFFF;

	background-attachment: fixed;

	background-image: url(../images/bottom_round.jpg);

	background-repeat: no-repeat;

	background-position: center bottom;



#footer    {

	position: absolute;

	bottom: 1%;

	width: 815px;

	clear: both;

	left: 25%;

	right: 25%;

	height: 26px;

	background-attachment: fixed;

	background-image: url(../images/bottom_round.jpg);

	background-repeat: no-repeat;

	background-position: center top;

	background-color: #FFFFFF;


Open in new window

Question by:LZ1
LVL 13

Accepted Solution

Onthrax earned 500 total points
ID: 22666987
Replace your footer part with this:

    <div id="footer">
      <div align="center">
        <p>&copy; 2008 MadCups</p>
      <div style="position: absolute; margin-left:-6px;"><img src="../images/bottom_round.jpg" width="815" height="33" /></div>

LVL 30

Author Closing Comment

ID: 31504088
Worked great!  Thanks!!

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
form button worked now it doesnt anymore 9 41
Change text to radio button and calendar form 2 36
Set email body to html using vbscript 6 26
Form Submit falis 6 26
This article discusses four methods for overlaying images in a container on a web page
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now