Forums

CSS

This topic is locked

CSS Footers

Posted 14 May 2005 12:05:53
1
has voted
14 May 2005 12:05:53 Robert Breitman posted:
I have followed the tutorial by creating a container for the whole page and putting the footer at the bottom ... this works fine when the window is fully expanded, but seems to have problems in a window that is not... the footer appears at the bottom of the window and the text starts running under it and past it... any suggestions?

This is the .css file (the footer is #siteinfo)
<pre id=code><font face=courier size=2 id=code>
/***********************************************/
/* HTML tag styles */
/***********************************************/
body{
font-family: Arial,sans-serif;
color: #000000;
line-height: 1.166;
margin: 0px;
padding: 0px;
background: #cccccc url("images/page_background.png" fixed;
}

html, body, #contents {
min-height: 100%;
width: 100%;
height: 100%;
}

html&gt;body, html&gt;body #contents {
height: auto;
}

#contents {
position: absolute;
left: 0px;
top: 0px;
}

/******* hyperlink and anchor tag styles *******/

a:link, a:visited{
color: #005FA9;
text-decoration: none;
}

a:hover{
text-decoration: underline;
}

/************** header tag styles **************/

h1{
font: bold 120% Arial,sans-serif;
color: #334d55;
margin: 0px;
padding: 0px;
}

h2{
font: bold 114% Arial,sans-serif;
color: #006699;
margin: 0px;
padding: 0px;
}

h3{
font: bold 100% Arial,sans-serif;
color: #334d55;
margin: 0px;
padding: 0px;
}

h4{
font: 100% Arial,sans-serif;
color: #333333;
margin: 0px;
padding: 0px;
}

h5{
font: 100% Arial,sans-serif;
color: #334d55;
margin: 0px;
padding: 0px;
}


/*************** list tag styles ***************/

ul{
list-style-type: square;
}

ul ul{
list-style-type: disc;
}

ul ul ul{
list-style-type: none;
}

/********* form and related tag styles *********/

form {
margin: 0;
padding: 0;
}

label{
font: bold 1em Arial,sans-serif;
color: #334d55;
}

input{
font-family: Arial,sans-serif;
}

/***********************************************/
/* Layout Divs */
/***********************************************/
#pagecell1{
position:absolute;
top: 120px;
left: 2%;
right: 2%;
width:95.6%;
background-color: #ffffff;
}

#tl {
position:absolute;
top: -1px;
left: -1px;
margin: 0px;
padding: 0px;
}

#tr {
position:absolute;
top: -1px;
right: -1px;
margin: 0px;
padding: 0px;
}

#masthead{
position: absolute;
top: 5px;
left: 2%;
right: 2%;
width:95.6%;

}

#pageNav{
float: right;
width:178px;
padding: 0px;
background-color: #F5f7f7;
border-left: 1px solid #cccccc;
border-bottom: 1px solid #cccccc;
font: small Verdana,sans-serif;
}

#content{
padding: 0px 10px 0px 0px;
margin:0px 178px 0px 0px;
border-right: 1px solid #ccd2d2;
}


/***********************************************/
/* Component Divs */
/***********************************************/
#siteName{
margin: 0px;
padding: 16px 0px 8px 0px;
color: #ffffff;
font-weight: normal;
}

/************* globalNav styles ****************/

#globalNav{
position: relative;
width: 100%;
min-width: 640px;
height: 22px;
color: #cccccc;
padding: 0px;
margin: 0px;
background-image: url("images/glbnav_background.gif";
}

/************** utility styles *****************/

#utility{
font: 125% Times New Roman, Times, serif;
position: absolute;
top: 5px;
right: 0%;
color: #ffffff;
font-style:italic;
font-weight:bold;
}

/************* breadCrumb styles ***************/

#breadCrumb{
padding: 5px 0px 5px 10px;
font: small Verdana,sans-serif;
color: #AAAAAA;
}

#breadCrumb a{
color: #AAAAAA;
}

#breadCrumb a:hover{
color: #005FA9;
text-decoration: underline;
}


/************** feature styles *****************/

.feature{
padding: 0px 0px 10px 10px;
font-size: 80%;
min-height: 200px;
height: 200px;
}
html&gt;body .feature {height: auto;}

.feature h3{
font: bold 175% Arial,sans-serif;
color: #FF0000;
padding: 30px 0px 5px 0px;
}

.feature img{
float: left;
padding: 0px 10px 5px 0px;
}


/*************** story styles ******************/

.story {
padding: 10px 0px 0px 10px;
font-size: 80%;
}

.story h3{
font: bold 125% Arial,sans-serif;
color: #FF0000;
}

.story p {
padding: 0px 0px 10px 0px;
}

td.storyLeft{
padding-right: 12px;
}


/************** siteInfo styles ****************/

#siteInfo{
border-top: 1px solid #cccccc;
font-size: small;
color: #000000;
margin-top: 30px;
background-color: #FFFFFF;
position: absolute;
bottom: 0;
left: 2%;
right: 2%;
width:95.6%;
margin-bottom: 5px;
}

#siteInfo img{
padding: 4px 4px 4px 0px;
vertical-align: middle;
}

/**************** advert styles *****************/

#advert{
padding: 10px;
}

#advert img{
display: block;
}

#onepixel
{
position: absolute;
top: 0px;
left: 0px;
width: 1px;
height: 1px;
}

/****************** misc styles *****************/
.address {font-size: x-small}

/********************* end **********************/
</font id=code></pre id=code>

the code for a sample page is
<pre id=code><font face=courier size=2 id=code>
&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"www.w3.org/TR/html4/loose.dtd"&gt;
&lt;html&gt;&lt;!-- InstanceBegin template="/Templates/ser_template.dwt" codeOutsideHTMLIsLocked="false" --&gt;
&lt;head&gt;
&lt;!-- InstanceBeginEditable name="MetaTags" --&gt;
&lt;title&gt;SER Communications&lt;/title&gt;
&lt;META NAME="keywords" content=""&gt;
&lt;META NAME="description" content=""&gt;
&lt;!-- InstanceEndEditable --&gt;
&lt;meta name="robots" content="ALL"&gt;
&lt;meta name="resource-type" content="document"&gt;
&lt;meta http-equiv="pragma" content="no-cache"&gt;
&lt;meta name="revisit-after" content="7 days"&gt;
&lt;meta name="classification" content=""&gt;
&lt;meta name="distribution" content="Michigan"&gt;
&lt;meta name="rating" content="General"&gt;
&lt;meta name="author" content="Netspace"&gt;
&lt;meta name="language" content="English"&gt;
&lt;meta name="doc-type" content="Web Page"&gt;
&lt;meta name="doc-class" content="Completed"&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&gt;
&lt;script language="JavaScript" type="text/javascript" src="menus/menu_scr.js"&gt;&lt;/script&gt;
&lt;link rel="stylesheet" href="ser.css" type="text/css"&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id="contents"&gt;
&lt;div id="siteInfo"&gt;
&lt;table width="100%" border="0" cellpadding="0"&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="index.htm"&gt;Home&lt;/a&gt; | &lt;a href="ser_communications_service_overview.htm"&gt;Services&lt;/a&gt; | &lt;a href="ser_communications_industries_overview.htm"&gt;Industries&lt;/a&gt; | &lt;a href="ser-communications-project-portfolio1.htm"&gt;Project
Portfolio&lt;/a&gt; | &lt;a href="about_ser_communications.htm"&gt;About Us&lt;/a&gt; | &lt;a href="contact_ser_communications.htm"&gt;Contact
Us&lt;/a&gt; &lt;br&gt;
Copyright &copy;2005 SER Communications, Inc. All rights reserved. &lt;/td&gt;
&lt;td align="right"&gt;&lt;a href="www.netspace25.com" target="_blank"&gt;&lt;img src="images/poweredbynetspace.gif" alt="Netspace of Oakland County &ndash; an Internet Consultantcy focused on creating an effective web presence for its clients." border="0"&gt;&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;div id="onepixel"&gt; &lt;img src="images/blank.gif" width="1" height="1" alt=""&gt; &lt;/div&gt;
&lt;div id="masthead"&gt; &lt;img src="images/serlogo_white.gif" alt=""&gt;
&lt;div id="utility"&gt;&ldquo;Service begins with SER&rdquo;&lt;/div&gt;
&lt;div id="globalNav"&gt;
&lt;table cellpadding='0' cellspacing='0' border='0'&gt;
&lt;tr&gt;
&lt;td&gt;&lt;img src="./menus/menu_m1_b.png" alt="SER Communications" /&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="index.htm" onmouseover="exM(m1,'none','',event);chgBg(m1,'m1tlm0',3)" onmouseout="chgBg(m1,'m1tlm0',0,1)"&gt;&lt;img border="0" id="m1tlm0" src="./menus/menu_m1_i0.png" alt="SER Communications &ndash; Home Page" /&gt;&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="./menus/menu_m1_s.png" alt="SER Communications" /&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="javascript:void(0);" onmouseover="exM(m1,'m1mn1','m1tlm1',event);chgBg(m1,'m1tlm1',3)" onmouseout="coM(m1,'m1mn1','m1tlm1');chgBg(m1,'m1tlm1',0)"&gt;&lt;img border="0" id="m1tlm1" src="./menus/menu_m1_i1.png"alt="SER Communications &ndash; Services" /&gt;&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="./menus/menu_m1_s.png" alt="SER Communications" /&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="ser_communications_industries_overview.htm" onmouseover="exM(m1,'m1mn2','m1tlm2',event);chgBg(m1,'m1tlm2',3)" onmouseout="coM(m1,'m1mn2','m1tlm2');chgBg(m1,'m1tlm2',0)"&gt;&lt;img border="0" id="m1tlm2" src="./menus/menu_m1_i2.png"alt="SER Communications &ndash; Industries Served" /&gt;&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="./menus/menu_m1_s.png" alt="SER Communications" /&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="javascript:void(0);" onmouseover="exM(m1,'m1mn3','m1tlm3',event);chgBg(m1,'m1tlm3',3)" onmouseout="coM(m1,'m1mn3','m1tlm3');chgBg(m1,'m1tlm3',0)"&gt;&lt;img border="0" id="m1tlm3" src="./menus/menu_m1_i3.png"alt="SER Communications &ndash; Project Portfolio" /&gt;&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="./menus/menu_m1_s.png" alt="SER Communications" /&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="javascript:void(0);" onmouseover="exM(m1,'m1mn4','m1tlm4',event);chgBg(m1,'m1tlm4',3)" onmouseout="coM(m1,'m1mn4','m1tlm4');chgBg(m1,'m1tlm4',0)"&gt;&lt;img border="0" id="m1tlm4" src="./menus/menu_m1_i4.png"alt="SER Communications &ndash; About Us" /&gt;&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="./menus/menu_m1_s.png" alt="SER Communications" /&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="contact_ser_communications.htm" onmouseover="exM(m1,'none','',event);chgBg(m1,'m1tlm5',3)" onmouseout="chgBg(m1,'m1tlm5',0,1)"&gt;&lt;img border="0" id="m1tlm5" src="./menus/menu_m1_i5.png"alt="SER Communications &ndash; Contact Us" /&gt;&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="./menus/menu_m1_e.png" alt="SER Communications" /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;!-- end globalNav --&gt;
&lt;/div&gt;
&lt;!-- end masthead --&gt;
&lt;div id="pagecell1"&gt;
&lt;!--pagecell1--&gt;
&lt;img alt="" src="images/tl_curve_white.gif" height="6" width="6" id="tl"&gt; &lt;img alt="" src="images/tr_curve_white.gif" height="6" width="6" id="tr"&gt;
&lt;!-- &lt;div id="breadCrumb"&gt; --&gt;
&lt;!-- InstanceBeginEditable name="breadcrumbs" --&gt;
&lt;div id="breadCrumb" align="right"&gt; &lt;a href="#"&gt;Home&lt;/a&gt; /&lt;/div&gt;
&lt;!-- InstanceEndEditable --&gt;
&lt;div id="pageNav"&gt;
&lt;div id="advert"&gt; &lt;!-- InstanceBeginEditable name="factoid" --&gt;
&lt;p&gt;&lt;img src="images/ser_factoid_box.jpg" alt="" width="150" height="225" /&gt;&lt;/p&gt;
&lt;!-- InstanceEndEditable --&gt;
&lt;div align="center"&gt;&lt;span class="address"&gt;SER Communications, Inc.&lt;br&gt;
25367 Dequindre Road&lt;br&gt;
Madison Heights, MI&lt;br&gt;
48071&lt;br&gt;
&lt;br&gt;
(248) 398-1009 &lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="content"&gt; &lt;!-- InstanceBeginEditable name="content" --&gt;
&lt;div class="feature"&gt; &lt;img src="" alt="" width="280" height="200"&gt;
&lt;h3&gt;Feature Title&lt;/h3&gt;
&lt;p&gt; Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec
molestie. Sed aliquam sem ut arcu. Phasellus sollicitudin. Vestibulum
condimentum facilisis nulla. In hac habitasse platea dictumst. Nulla
nonummy. Cras quis libero. Cras venenatis. Aliquam posuere lobortis
pede. Nullam fringilla urna id leo. Praesent aliquet pretium erat.
Praesent non odio. Pellentesque a magna a mauris vulputate lacinia.
Aenean viverra. Class aptent taciti sociosqu ad litora torquent per
conubia nostra, per inceptos hymenaeos. Aliquam lacus. Mauris magna
eros, semper a, tempor et, rutrum et, tortor. &lt;/p&gt;
&lt;/div&gt;
&lt;div class="story"&gt;
&lt;h3&gt;Story Title&lt;/h3&gt;
&lt;p&gt; Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec molestie.
Sed aliquam sem ut arcu. Phasellus sollicitudin. Vestibulum condimentum
facilisis nulla. In hac habitasse platea dictumst. Nulla nonummy. Cras
quis libero. Cras venenatis. Aliquam posuere lobortis pede. Nullam
fringilla urna id leo. Praesent aliquet pretium erat. Praesent non
odio. Pellentesque a magna a mauris vulputate lacinia. Aenean viverra.
Class aptent taciti sociosqu ad litora torquent per conubia nostra,
per inceptos hymenaeos. Aliquam lacus. Mauris magna eros, semper a,
tempor et, rutrum et, tortor. &lt;/p&gt;
&lt;/div&gt;
&lt;!-- InstanceEndEditable --&gt;&lt;/div&gt;
&lt;!--end content --&gt;
&lt;/div&gt;
&lt;!--end pagecell1--&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;!-- InstanceEnd --&gt;&lt;/html&gt;
</font id=code></pre id=code>

Edited by - breitman on 14 May 2005 12:41:34

Replies

Replied 20 May 2005 02:16:15
20 May 2005 02:16:15 chadmih chad replied:
Can you send a link to the site so we can see the problem?

Thanks.

<h6>JUXTAFLO_</h6>
<img src="www.juxtaflo.com/images/flashkit_footer.jpg" border=0>

Reply to this topic