Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 411
  • Last Modified:

css div at bottom of page

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
Cheryl Lander
Asked:
Cheryl Lander
2 Solutions
 
hieloCommented:
add:

clear:both;

to your #footer{...} definition
0
 
scrathcyboyCommented:
<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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now