Solved

css div at bottom of page

Posted on 2008-10-26
2
407 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 400 total points
ID: 22809417
add:

clear:both;

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

Assisted Solution

by:scrathcyboy
scrathcyboy earned 100 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
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 style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

688 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