Footer won't stay down
Posted: Mon Jun 04, 2012 1:05 pm
I made some major changes to our website. I'm not sure why the changes broke our footer though. Here's the code for Layout 1...
{process_pagedata}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<__html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
{* Change lang="en" to the language of your site *}
<head>
<title>{sitename} - {title}</title>
{* The sitename is changed in Site Admin/Global settings. {title} is the name of each page *}
{metadata}
{* Don't remove this! Metadata is entered in Site Admin/Global settings. *}
{stylesheet}
{* This is how all the stylesheets attached to this template are linked to *}
{cms_selflink dir="start" rellink=1}
{cms_selflink dir="prev" rellink=1}
{cms_selflink dir="next" rellink=1}
{* Relational links for interconnections between pages, good for accessibility and Search Engine Optmization *}
{literal}
<__script__ type="text/JavaScript">
<!--
//pass min and max -measured against window width
function P7_MinMaxW(a,b){
var nw="auto",w=document.documentElement.clientWidth;
if(w>=b){nw=b+"px";}if(w<=a){nw=a+"px";}return nw;
}
//-->
</__script>
<!--[if lte IE 6]>
<style type="text/css">
#pagewrapper {width:expression(P7_MinMaxW(720,950));}
#container {height: 1%;}
</style>
<![endif]-->
{/literal}
{* The min and max page width for Internet Explorer is set here. For other browsers it's in the stylesheet "Layout: Left sidebar + 1 column" *}
</__script>
{literal}
<__script__ language="javascript" type="text/javascript" src="/scripts/budgetbadge/budgetBadge.js"></__script>
{/literal}
</head>
</__body>
<hr class="accessibility" />
{* Horizontal ruler that is hidden for visual browsers by CSS *}
{* Start Header, with logo image that links to the default start page. Logo image is changed in the stylesheet "For template: Left menu + 1 column" *}
<div id="header">
<h1>{cms_selflink page="home" text="$sitename"}</h1>
<hr class="accessibility" />
<div id="helpmenu">{menu start_page="top-help-menu" number_of_levels="1" template="default"}</div>
<div id="address">{global_content name="district_address"}</div>
<div id="transparency_reporting">{global_content_name="transparency_reporting"}</div>
<div id="news">{global_content name="news"}</div>
{*
<div id="buttons">{global_content name="buttons"}</div>
*}
{* End Header *}
<div id="menu_horiz">{menu start_page="school-menu" number_of_levels="1"}</div>
{* Start Content (Navigation and Content columns) *}
<div id="content">
{* Start Sidebar *}
<div id="sidebar">
{* Start Navigation *}
<div id="menu_vert">
<h2 class="accessibility">Navigation</h2>
{menu template='simple_navigation.tpl' collapse='1'}
</div>
{* End Navigation *}
{* Start Search *}
<div id="search">
{search searchtext="Enter Keywords..."}
</div>
{* End Search *}
</div>
{* End Sidebar *}
{* Start Content Area *}
<div id="main">
<div style="float: right;">{print showbutton=true script=true}</div>
<h2>{title}</h2>
{content} <br />
<hr class="accessibility" />
</div>
{* End Content Area *}
</div>
{* End Content *}
</div>{* end pagewrapper *}
{* Start Footer. Edit the footer in the Global Content Block called "footer" *}
{* Something is wrong with the footer. If uncommented, doesn't adjust right with website *}
{*
<div id="footer">
{global_content name='footer'}
</div>
*}
{* End Footer *}
<__body>
</__html>
Like I put in my comments, if I uncomment the footer, the footer shows up in the top menu bar of the website.
Right now, even with it commented, the top bar is blue but the footer copyright info is appearing up there. I think most people just don't notice it.
{process_pagedata}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<__html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
{* Change lang="en" to the language of your site *}
<head>
<title>{sitename} - {title}</title>
{* The sitename is changed in Site Admin/Global settings. {title} is the name of each page *}
{metadata}
{* Don't remove this! Metadata is entered in Site Admin/Global settings. *}
{stylesheet}
{* This is how all the stylesheets attached to this template are linked to *}
{cms_selflink dir="start" rellink=1}
{cms_selflink dir="prev" rellink=1}
{cms_selflink dir="next" rellink=1}
{* Relational links for interconnections between pages, good for accessibility and Search Engine Optmization *}
{literal}
<__script__ type="text/JavaScript">
<!--
//pass min and max -measured against window width
function P7_MinMaxW(a,b){
var nw="auto",w=document.documentElement.clientWidth;
if(w>=b){nw=b+"px";}if(w<=a){nw=a+"px";}return nw;
}
//-->
</__script>
<!--[if lte IE 6]>
<style type="text/css">
#pagewrapper {width:expression(P7_MinMaxW(720,950));}
#container {height: 1%;}
</style>
<![endif]-->
{/literal}
{* The min and max page width for Internet Explorer is set here. For other browsers it's in the stylesheet "Layout: Left sidebar + 1 column" *}
</__script>
{literal}
<__script__ language="javascript" type="text/javascript" src="/scripts/budgetbadge/budgetBadge.js"></__script>
{/literal}
</head>
</__body>
<hr class="accessibility" />
{* Horizontal ruler that is hidden for visual browsers by CSS *}
{* Start Header, with logo image that links to the default start page. Logo image is changed in the stylesheet "For template: Left menu + 1 column" *}
<div id="header">
<h1>{cms_selflink page="home" text="$sitename"}</h1>
<hr class="accessibility" />
<div id="helpmenu">{menu start_page="top-help-menu" number_of_levels="1" template="default"}</div>
<div id="address">{global_content name="district_address"}</div>
<div id="transparency_reporting">{global_content_name="transparency_reporting"}</div>
<div id="news">{global_content name="news"}</div>
{*
<div id="buttons">{global_content name="buttons"}</div>
*}
{* End Header *}
<div id="menu_horiz">{menu start_page="school-menu" number_of_levels="1"}</div>
{* Start Content (Navigation and Content columns) *}
<div id="content">
{* Start Sidebar *}
<div id="sidebar">
{* Start Navigation *}
<div id="menu_vert">
<h2 class="accessibility">Navigation</h2>
{menu template='simple_navigation.tpl' collapse='1'}
</div>
{* End Navigation *}
{* Start Search *}
<div id="search">
{search searchtext="Enter Keywords..."}
</div>
{* End Search *}
</div>
{* End Sidebar *}
{* Start Content Area *}
<div id="main">
<div style="float: right;">{print showbutton=true script=true}</div>
<h2>{title}</h2>
{content} <br />
<hr class="accessibility" />
</div>
{* End Content Area *}
</div>
{* End Content *}
</div>{* end pagewrapper *}
{* Start Footer. Edit the footer in the Global Content Block called "footer" *}
{* Something is wrong with the footer. If uncommented, doesn't adjust right with website *}
{*
<div id="footer">
{global_content name='footer'}
</div>
*}
{* End Footer *}
<__body>
</__html>
Like I put in my comments, if I uncomment the footer, the footer shows up in the top menu bar of the website.
Right now, even with it commented, the top bar is blue but the footer copyright info is appearing up there. I think most people just don't notice it.