Copy link to clipboard
Copied
Hi everyone, I am new here so sorry if I am repeating a topic discussed already.
I have 2 problems from my template:
1. My website looks fine in Safari, FF but IE7 footer floats upto a div halfway up the page then the content is behind it and continues to the bottom of the screen, am I missing a vital trick here (is it best to have a main container for all content and a footer container outside this main content?)
2. If I put a div container around the 2 repeatable regions which are called ("main_content" and "sidebar") when I click the + on the editable region in the html page the outer container doesn't auto fit the height, how can I make outer container auto fit to how many repeatable regions I have clicked.
Template source code is below and test web page with 5 repeatable regions is http://aegmotorhomes.co.uk/test.html
I will take this time now to say thank you and to apologise for this dribble I may have wrote.
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
<style type="text/css">
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
#container {
background-image: url(../MOTORHOME%20IMAGES/Top%20Nav/topbanner.jpg);
background-repeat: repeat-x;
}
#TOPSPACE {
height: 5px;
width: 910px;
margin-right: auto;
margin-left: auto;
}
#search_container {
height: 35px;
width: 970px;
}
#search {
float: right;
width: 250px;
height: 25px;
}
#top_links {
height: 20px;
width: 970px;
margin-right: auto;
margin-left: auto;
font-family: Arial, Helvetica, sans-serif;
font-size: small;
color: #FFF;
font-weight: lighter;
font-style: normal;
line-height: normal;
}
#content {
background-image: url(../MOTORHOME%20IMAGES/Top%20Nav/TOPIMAGE.jpg);
width: 970px;
margin-right: auto;
margin-left: auto;
height: 266px;
background-repeat: no-repeat;
}
#navspacer {
height: 22px;
width: 970px;
margin-right: auto;
margin-left: auto;
}
#navbar {
height: 28px;
width: 970px;
margin-right: auto;
margin-left: auto;
}
#footer {
background-image: url(../MOTORHOME%20IMAGES/Footer/Screen%20shot%202011-07-15%20at%2016.16.51.png);
height: 350px;
clear: both;
position: relative;
}
#nav_bootomspacer {
height: 5px;
width: 970px;
margin-right: auto;
margin-left: auto;
}
#tab_spacer {
float: left;
height: 28px;
width: 15px;
}
#spacer2 {
height: 115px;
width: 970px;
margin-right: auto;
margin-left: auto;
}
#main_content {
float: left;
height: auto;
width: 715px;
font-family: Arial, Helvetica, sans-serif;
font-size: medium;
color: #397A7A;
background-color: #FFF;
padding-top: 5px;
padding-right: 0px;
padding-bottom: 5px;
padding-left: 10px;
}
body,td,th {
font-family: Arial, Helvetica, sans-serif;
font-size: medium;
color: #387675;
text-align: left;
}
a {
font-family: Arial, Helvetica, sans-serif;
font-size: small;
}
a:link {
color: #FFF;
text-decoration: none;
}
a:visited {
color: #FFF;
text-decoration: none;
}
a:hover {
color: #55B0B1;
text-decoration: none;
}
a:active {
color: #FFF;
text-decoration: none;
font-size: small;
}
#copyright_spacer {
height: 10px;
width: 970px;
margin-right: auto;
margin-left: auto;
}
#Copyright {
font-family: Arial, Helvetica, sans-serif;
font-size: small;
color: #FFF;
height: 20px;
width: 970px;
margin-right: auto;
margin-left: auto;
}
#copy {
height: 20px;
width: 400px;
float: left;
}
#legal {
width: 30px;
float: right;
height: 20px;
}
#legal_space {
float: right;
width: 180px;
height: 20px;
}
#footer_details {
height: 100px;
width: 960px;
margin-right: auto;
margin-left: auto;
padding-left: 10px;
}
#footer_links {
height: 145px;
width: 970px;
margin-right: auto;
margin-left: auto;
border-bottom-width: thin;
border-bottom-style: dotted;
border-bottom-color: #333;
}
#footer_links table colour {
color: #FFF;
font-family: Arial, Helvetica, sans-serif;
font-size: small;
}
#bottom_link_spacer {
height: 10px;
width: 970px;
margin-right: auto;
margin-left: auto;
}
#copy_left_spacer {
float: left;
height: 20px;
width: 20px;
}
#bottom_contact {
font-family: Arial, Helvetica, sans-serif;
font-size: small;
color: #FFF;
float: left;
height: 110px;
width: 200px;
}
#logo_bottom {
float: left;
height: 110px;
width: 175px;
}
#footer_link_space {
height: 30px;
width: 970px;
margin-right: auto;
margin-left: auto;
}
#floatspace {
clear: both;
height: 20px;
}
#clowe {
float: right;
height: 60px;
width: 240px;
}
#footlinks {
float: left;
height: 140px;
width: 600px;
}
#socialmedia {
width: 210px;
float: right;
}
#socialspacer {
float: right;
height: 80px;
width: 300px;
}
#footlinks table medium {
font-size: medium;
}
#footlinks table tr td a {
font-size: small;
color: #CCC;
}
#you_are_here {
font-family: Arial, Helvetica, sans-serif;
font-size: small;
color: #666;
width: 930px;
margin-right: auto;
margin-left: auto;
}
#youspacer {
height: 15px;
width: 970px;
margin-right: auto;
margin-left: auto;
}
.you_are_herecolour {
color: #409EA0;
font-weight: bold;
}
.fillin {
font-weight: bold;
color: #387675;
}
#sidebar {
float: right;
height: auto;
width: 199px;
padding-right: 20px;
padding-left: 22px;
background-image: url(../MOTORHOME%20IMAGES/Sidebar/sibar%20temp.jpg);
background-repeat: no-repeat;
}
#adverts {
margin-bottom: 20px;
}
</style>
<script type="text/javascript">
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a.indexOf("#")!=0){ d.MM_p
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
</script>
<link href="../MOTORHOME IMAGES/CSS/Footer Links.css" rel="stylesheet" type="text/css" />
</head>
<body onload="MM_preloadImages('../MOTORHOME IMAGES/Tabs/2swift.jpg','../MOTORHOME IMAGES/Tabs/2escape.jpg','../MOTORHOME IMAGES/Tabs/2autocruise.jpg','../MOTORHOME IMAGES/Tabs/2used.jpg','../MOTORHOME IMAGES/Tabs/2service.jpg')">
<div id="container">
<div id="headwrap">
<div id="content">
<div id="TOPSPACE"></div>
<div id="search_container">
<div id="search">
<script type="text/javascript">
// Google Internal Site Search script- By JavaScriptKit.com (http://www.javascriptkit.com)
// For this and over 400+ free scripts, visit JavaScript Kit- http://www.javascriptkit.com/
// This notice must stay intact for use
//Enter domain of site to search.
var domainroot="aegmotorhomes.co.uk"
function Gsitesearch(curobj){
curobj.q.value="site:"+domainroot+" "+curobj.qfront.value
}
</script>
<form action="http://www.google.com/search" method="get" onSubmit="Gsitesearch(this)">
<input name="q" type="hidden" />
<input name="qfront" type="text" style="width: 150px" />
<input type="submit" value="Search" />
</form>
</div>
</div>
<div id="top_links">
<div align="right"><a href="http://www.aegmotorhomes.co.uk/">Home</a> | <a href="http://aegmotorhomes.co.uk/news.html">News</a> | <a href="http://aegmotorhomes.co.uk/offers.html">Offers</a> |<a href="http://aegmotorhomes.co.uk/brochures.html"> Brochures</a> | <a href="http://aegmotorhomes.co.uk/insurance.html">Insurance Repairs </a>| <a href="http://aegmotorhomes.co.uk/conversions.html">Conversions</a> | <a href="http://aegmotorhomes.co.uk/refurbishment.html">Refurbishment</a> | <a href="http://aegmotorhomes.co.uk/contact.html">Contact us |</a></div>
</div>
<div id="navspacer"></div>
<div id="navbar">
<div id="tab_spacer"></div>
<a href="http://aegmotorhomes.co.uk/swift.html"><img src="../MOTORHOME IMAGES/Tabs/1swift.jpg" alt="Swift Motorhomes" name="swift" width="107" height="26" border="0" id="swift" onmouseover="MM_swapImage('swift','','../MOTORHOME IMAGES/Tabs/2swift.jpg',1)" onmouseout="MM_swapImgRestore()" /></a><a href="http://aegmotorhomes.co.uk/escape.html"><img src="../MOTORHOME IMAGES/Tabs/1escape.jpg" alt="escape motorhomes" name="escape" width="107" height="26" border="0" id="escape" onmouseover="MM_swapImage('escape','','../MOTORHOME IMAGES/Tabs/2escape.jpg',1)" onmouseout="MM_swapImgRestore()" /></a><a href="http://aegmotorhomes.co.uk/autocruise.html"><img src="../MOTORHOME IMAGES/Tabs/1autocruise.jpg" alt="autocruise motorhomes" name="autocruise" width="107" height="26" border="0" id="autocruise" onmouseover="MM_swapImage('autocruise','','../MOTORHOME IMAGES/Tabs/2autocruise.jpg',1)" onmouseout="MM_swapImgRestore()" /></a><a href="http://aegmotorhomes.co.uk/used.html"><img src="../MOTORHOME IMAGES/Tabs/1used.jpg" alt="used motorhomes" name="used" width="107" height="26" border="0" id="used" onmouseover="MM_swapImage('used','','../MOTORHOME IMAGES/Tabs/2used.jpg',1)" onmouseout="MM_swapImgRestore()" /></a><a href="http://aegmotorhomes.co.uk/service.html"><img src="../MOTORHOME IMAGES/Tabs/1service.jpg" alt="motorhome service" name="service" width="107" height="26" border="0" id="service" onmouseover="MM_swapImage('service','','../MOTORHOME IMAGES/Tabs/2service.jpg',1)" onmouseout="MM_swapImgRestore()" /></a></div>
<div id="youspacer"></div>
<div id="you_are_here"><!-- TemplateBeginEditable name="You are here" -->You are here:<span class="fillin"> Fill in</span><!-- TemplateEndEditable --></div>
<div id="spacer2"></div>
<div id="main_content">
<div id="Newstitle">AEG Motorhomes News & Updates
<div id="newstitletext"> AEG Motorhomes keeps you informed of all our latest offers and discounts on Motorhome and Campervan New & Used Sales, Service, Parts and Accessories. We will post all Motorhome events, Shows, model release dates and articles here. If you have any Motorhome news or articles you wish us to publish, please call our team on 01562 535 039 or alternatively you can email motorhomes@allelectric.co.uk.</div>
</div>
<!-- TemplateBeginRepeat name="article" --><!-- TemplateBeginEditable name="Edit Article" -->
<div id="Content_area">
<div id="Content_head">head</div>
<div id="content_text">text</div>
</div>
<!-- TemplateEndEditable --><!-- TemplateEndRepeat --></div>
<div id="sidebar"><!-- TemplateBeginRepeat name="sidebar1" --><!-- TemplateBeginEditable name="sidebaredit" -->
<div id="adverts">
<p> </p>
</div>
<!-- TemplateEndEditable --><!-- TemplateEndRepeat --></div>
<div id="lowerspacer"></div>
</div>
</div>
<div id="content_space_bottom"></div>
<div id="floatspace"></div>
<div id="footer">
<div id="copyright_spacer"></div>
<div id="Copyright">
<div id="copy_left_spacer"></div>
<div id="copy"> © 2011 All Electric GaragesMotorhomes. All Rights Reserved</div>
<div id="legal"></div>
<div id="legal_space"><a href="http://aegmotorhomes.co.uk/accessibility.html">Accessibility</a> | <a href="http://aegmotorhomes.co.uk/privacy.html">Privacy</a> | <a href="http://aegmotorhomes.co.uk/legal.html">Legal</a></div>
</div>
<div id="bottom_link_spacer"></div>
<div id="footer_links">
<div id="footlinks">
<table width="100%" border="0" cellspacing="5">
<tr>
<td width="5"> </td>
<td><a href="http://aegmotorhomes.co.uk/swift.html">Swift</a></td>
<td><a href="http://aegmotorhomes.co.uk">Home</a></td>
<td><a href="http://aegmotorhomes.co.uk/conversions.html">Conversions</a></td>
</tr>
<tr>
<td width="5"> </td>
<td><a href="http://aegmotorhomes.co.uk/escape.html">Escape</a></td>
<td><a href="http://aegmotorhomes.co.uk/news.html">News</a></td>
<td><a href="http://aegmotorhomes.co.uk/refurbishment.html">Refurbishment</a></td>
</tr>
<tr>
<td width="5"> </td>
<td><a href="http://aegmotorhomes.co.uk/autocruise.html">Autocruise</a></td>
<td><a href="http://aegmotorhomes.co.uk/offers.html">Offers</a></td>
<td><a href="http://aegmotorhomes.co.uk/service.html">Service</a></td>
</tr>
<tr>
<td width="5"> </td>
<td><a href="http://aegmotorhomes.co.uk/used.html">Used</a></td>
<td><a href="http://aegmotorhomes.co.uk/brochures.html">Brochures</a></td>
<td><a href="http://aegmotorhomes.co.uk/sitemap.html">Site map</a></td>
</tr>
<tr>
<td width="5" height="20"> </td>
<td><a href="http://aegmotorhomes.co.uk/trailertents.html">Trailer Tents</a></td>
<td><a href="http://aegmotorhomes.co.uk/insurance.html">Insurance</a></td>
<td><a href="http://aegmotorhomes.co.uk/contact.html">Contact us</a></td>
</tr>
</table>
</div>
<div id="socialspacer"></div>
<div id="socialmedia"><a href="http://www.facebook.com/pages/All-Electric-Garages-Group/112905889042"><img src="../MOTORHOME IMAGES/Footer/facebook.jpg" alt="" name="facebook" width="40" height="40" border="0" id="facebook" /></a> <a href="http://twitter.com/#!/allelectricplc"><img src="../MOTORHOME IMAGES/Footer/twitter.jpg" alt="" name="twitter" width="40" height="40" border="0" id="twitter" /></a> <a href="http://www.youtube.com/user/allelectricgarages"><img src="../MOTORHOME IMAGES/Footer/youtube.jpg" alt="" name="youtube" width="40" height="40" border="0" id="youtube" /></a> <a href="http://allelectricgaragesplc.blogspot.com/"><img src="../MOTORHOME IMAGES/Footer/blogger.jpg" alt="" name="blogger" width="40" height="40" border="0" id="blogger" /></a></div>
</div>
<div id="footer_link_space"></div>
<div id="footer_details">
<div id="bottom_logos">
<div id="logo_bottom"><a href="http://aegmotorhomes.co.uk"><img src="../MOTORHOME IMAGES/Footer/3logosfootersquarenew.jpg" alt="Aeg Motorhome Logos" name="motorhomelogos" width="144" height="94" border="0" id="motorhomelogos" /></a></div>
<div id="bottom_contact">All Electric Garages Motorhomes<br />
Churchfields<br />
Worcestershire<br />
DY102JL<br />
Tel: 01562 535 039<br />
Email: motorhomes@allelectric.co.uk</div>
<div id="clowe"><a href="http://aegmotorhomes.co.uk"><img src="../MOTORHOME IMAGES/Footer/Aeg Logodesigned blk.jpg" alt="Designed by CLowe" name="clowe" width="217" height="54" border="0" id="clowe2" /></a></div>
</div>
</div>
</div>
</body>
</html>
Copy link to clipboard
Copied
You are posting to the wrong forum. For html/css layout issues try posting to the Dreamweaver forum.