Solved

css div at bottom of page

Posted on 2008-10-26
2
401 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
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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

708 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

15 Experts available now in Live!

Get 1:1 Help Now