?
Solved

css div at bottom of page

Posted on 2008-10-26
2
Medium Priority
?
409 Views
Last Modified: 2008-10-26
I have a div which needs to be placed beneath another div.
but for some reason they move side by side.

<div id="wrapper">content</div>
<div id="footer">content</div>


#wrapper
{
	padding: 0px;
	margin-top: 11px;
	margin-bottom: 0px;
	margin-right: auto;
	margin-left: auto;
	text-align:left;
	width: 715px;
	voice-family: "\"}\"";
	voice-family:inherit;
	width: 715px;
}
#footer
{
	overflow:hidden;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 11px;
	color: #666666;
	text-decoration: none;
	text-align: center;
	padding:0px;
	width:720px;
	voice-family: "\"}\"";
	voice-family:inherit;
	width:720px;
	float: none;
	margin: 0px;
	height: 34px;
	border: 1px solid #FF0000;
}

Open in new window

0
Comment
Question by:Cheryl Lander
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 82

Accepted Solution

by:
hielo earned 1600 total points
ID: 22809417
add:

clear:both;

to your #footer{...} definition
0
 
LVL 44

Assisted Solution

by:scrathcyboy
scrathcyboy earned 400 total points
ID: 22809438
<div id="wrapper">content</div>
<BR />
<div id="footer" style="clear:both;">content</div>

The <BR> is guaranteed to put the footer on a line below the wrapper, and the clear:both style FIXES the footer in the page relative to the other DIV and other elements.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

This article discusses four methods for overlaying images in a container on a web page
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Suggested Courses

752 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