Jump to content


Some XHTML/CSS Help


2 replies to this topic

#1 LawrenceN

    Young Padawan

  • Members
  • Pip
  • 6 posts
  • Gender:Male
  • Location:Carbondale, IL
  • Interests:Programming, music, cars.

Posted 01 August 2008 - 01:29 PM

I'm working on my new website and I can't get the footer div to be placed under all these other boxes that are supposed to be above it.

Here's the site http://www.lnorton.net/

View source for html but here's the css:

@charset "utf-8";
/* Overall CSS - Lawrence Norton */
body {
	background-color: #666666;
	font-family: Geneva, Arial, Helvetica, sans-serif;
	font-size: 0.75em;
	color: #FFFFFF;
	text-align: center;
	margin: 0em 0em 1.56em 0em;
}

a:link { color: #CCCCCC; font-weight: bold;	text-decoration: none; }
a:visited {	text-decoration: none; color: #CCCCCC; }
a:hover { text-decoration: underline; color: #FFFFFF; }
a:active { text-decoration: none; color: #CCCCCC; }

h1 { color: #000000; }
h2 { background-image: url(http://www.lnorton.net/resource/image/heading.gif); color: #CCCCCC; font-weight: bold; }

#top {
	background-color: #d7d7d7;
	height: 1.5em;
	width: auto;
	border-bottom: 0.3em solid #ececec;
	text-align: right;
	padding-right: 3.13em;
	background-image: url(http://www.lnorton.net/resource/image/top.gif);
}

#wrapper {
	width: 75em;
	height: 64.5em;
	min-height: 64.3em;
	background-image: url(http://www.lnorton.net/resource/image/bg.gif);
	padding: 3em 0.9em 2.5em 0.9em;
	margin-right: auto;
	margin-left: auto;
	margin-top: 1.25em;
	margin-bottom: 1.25em;
	-moz-border-radius: 0.63em 0.63em 0.63em 0.63em;
}

#header {
	text-align: center;
}

#menu {
	width: 15em;
	height: 59.6em;
	float: left;
	background-color: #272727; 
}

#contentwrap {
	background-color: #272727; 
	width: 53.6em;
	max-width: 53.6em;
	min-width: 53.6em;
	min-height: 50em;
	height: 55em;
	border: 0.06em solid #000000;
	text-align: center;
	padding: 2.25em;
	float: right;
}

#content { 
	width: 100%;
	height: 100%;
	border: 0.06em solid #ececec; 
}

#nav {
	margin: 0;
	  list-style: none; 
	font: bold 0.8em;
	float: right;
	padding: 0em;
}
	
#nav li { display: inline; }
#nav li a {
	padding: .13em 0.63em 0.06em; 
	text-decoration: none;
	background-image: url(http://forum.lnorton.net/styles/default/theme/images/nav.gif);
	  border-left: 0.06em solid #ececec; 
	border-right: 0.06em solid #ececec;
	border-bottom: 0.06em solid #ececec;
	  -moz-border-radius: 0em 0em 0.63em 0.63em;
}

#nav li a:link { background-image: url(http://forum.lnorton.net/styles/default/theme/images/nav.gif); }
#nav li a:visited { background-image: url(http://forum.lnorton.net/styles/default/theme/images/nav.gif); }
#nav li a:hover { border: 0.06em solid #272727; color: #272727; background-image: url(http://www.lnorton.net/resource/image/top.gif); } 

#footer { 
	background-image: url(http://forum.lnorton.net/styles/default/theme/images/nav.gif);
	height: 2em;
	width: 74.6em;
	max-width: 74.6em;
	min-width: 74.6em;
	text-align: center;
	border: 0.06em solid #2f2f2f;
	padding-top: 0.63em;
	vertical-align: middle;
	-moz-border-radius: 0em 0em 0.63em 0.63em;
}


#2 Tyson D

    Young Padawan

  • Members
  • Pip
  • 85 posts
  • Gender:Male
  • Location:Canada

Posted 01 August 2008 - 02:00 PM

To bring it to the bottom you can make a clear div, something like this:

#clear {
clear: both;
}

Then add it just about your footer:

<div id="clear"></div>
<div id="footer">.....</div>


#3 jel3

    Young Padawan

  • Members
  • Pip
  • 8 posts
  • Gender:Male
  • Location:OOB, ME

Posted 07 August 2008 - 01:24 AM

just add
clear:both;
to your footer styles. no need to make an extra div to clear it.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users