Ok, for 1 thing you are missing the closing </div> tag for the #page div, that will help for starters. The page is still not centering in Firefox.
It is not centering in FF because your cSS is incorrect:
Quote:
margin-left:0 auto;
margin-right:0 auto;
|
The correct rule is margin: 0 auto;
Most of your code is pretty good, you're not that far out of whack. You DO need to learn to CLEAR your floats though. I've made some modifications as an example for you:
Quote:
body{ background-color:#53A6D5;
text-align:center;
margin:10px 0 0 0;
padding: 0;
}
#page {
position:relative;
width: 731px;
margin: 0 auto;
/*margin-left:0 auto;
margin-right:0 auto;*/
text-align:left;
}
.Header {
margin-top: 1px;
border-left: 1px solid #2C7FB6;
border-bottom: 0px;
border-right:1px solid #2C7FB6;
border-top: 1px solid #2C7FB6;
height:132px;
/*margin-left:auto;
margin-right:auto;*/
background: url(Layout1_r1_c1.jpg);
background-position:center;
}
.numbers {position:absolute;
margin-left: 0px;
margin-top: 0px;
left: 303px;
width: 393px;
height: 22px;
font-family:Verdana, Arial, Helvetica, sans-serif;
color: #F7931D;
font-size:22px; font-weight: bold;
padding: 5px;
line-height: 18px; z-index:6;
}
.Mid {
background: url(Layout1_r2_c1.jpg) no-repeat;
/*background-repeat:no-repeat;
background-position:top;*/
height: 423px;
border-left: 1px solid #2C7FB6;
border-bottom: 0px;
border-right:1px solid #2C7FB6;
border-top: 0px solid #2C7FB6;
}
.footer{
/* z-index: 2; */
/* left: 10px;*/
}
.footer-back{
border: 0px solid #2C7FB6;
height: 70px;
padding-top: 1px;
padding-bottom: 1px;
}
.footer h1{
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #163F5A;
font-size: 15px;
font-weight: bold;
text-align: center;
line-height: 17px;
margin-bottom: 0px;
}
.footer p{
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #163F5A;
font-size: 10px;
font-weight: bold;
text-align: center;
height: 13px;
padding-top: 0px;
padding-bottom: 2px;
margin-top: 0px;
}
.footer a{
color: #163F5A;
text-decoration: none;
}
.footer a:visited{
color: #163F5A;
text-decoration: none;
}
.footer a:hover{
color: #FFFFFF;
text-decoration: none;
}
#menu-background, #Column2
{ float:left;
margin-left: 11px;
margin-top: 8px;
}
#menu-background {
width: 151px;
height: 182px;
padding: 5px;
background-color:#FFFFFF;
/*filter: progid:DXImageTransform.Microsoft.BasicImage(opaci ty=.7);
opacity: .7; border:1px solid #2C7FB6;*/
/* text-align:left;*/
}
.menu {
margin-left: 0px;
margin-top: 0px;
/*z-index: 3; */
width: 151px;
height: 182px;
font-family:Verdana, Arial, Helvetica, sans-serif;
color: #666666;
font-size:11px; font-weight: bold;
padding-left: 3px;
/*line-height: 20px;*/
}
.menu li {
text-align:left;
list-style: none;
margin-left: 0px;
/*list-style-position:outside; */
background: url(orange-square2.gif) no-repeat;
/*vertical-align: bottom;*/
padding: 0 0 6px 14px;
}
.menu a{
padding: 0;
margin: 0;
color: #666666;
text-decoration: none;
}
.menu a:visited{
color: #666666;
text-decoration: none;
}
.menu a:hover{
color: #F7931D;
text-decoration: underline;
}
#Column2 {
width:520px;
padding: 0px;
/*z-index:1;*/
/*filter: progid:DXImageTransform.Microsoft.BasicImage(opaci ty=.7);
opacity: .7; text-align:left;*/
}
.border {
background-color:#FFFFFF;
/*filter: progid:DXImageTransform.Microsoft.BasicImage(opaci ty=.7);
opacity: .7; border:1px solid #2C7FB6;}*/
margin-bottom: 10px;
padding-bottom: 10px;
}
h1{
color: #F46404;
line-height: 22px;
font-size: 20px;
padding-left: 5px;
font-weight: bold;
margin-top: 1px;
}
h2{
line-height: 16px;
font-size: 12px;
padding-left: 5px;
}
.border p{
padding-left: 5px;
border: 0px;
margin-bottom: 2px;
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #12344B;
font-size: 11px;
font-weight: normal;
text-align: left;
}
.brclear{
clear:both;
height:0;
margin:0;
font-size: 1px;
line-height: 0;
}
|
Quote:
<div id="page">
<div class="Header">
<div class="numbers">01622 861 533 01622 862 563</div>
</div><!-- end header -->
<div class="Mid">
<div id="menu-background">
<ul class="menu">
<li><a href="http://www.gryffindor.me.uk/www.fantiski/Layout1-index.html">Index</a></li>
<li><a href="http://www.gryffindor.me.uk/www.fantiski/Layout2-contact.html">Contact Us</a></li>
<li><a href="http://www.gryffindor.me.uk/www.fantiski/Layout7-details.html">Apartment </a></li>
<li><a href="http://www.gryffindor.me.uk/www.fantiski/Layout4-prices.html">Apartment </a></li>
<li><a href="http://www.gryffindor.me.uk/www.fantiski/Layout4-prices.html">Prices</a></li>
<li><a href="http://www.gryffindor.me.uk/www.fantiski/Layout6-map.html">Val d'Isère map</a> </li>
<li><a href="http://www.gryffindor.me.uk/www.fantiski/Layout4-arrivals.html">Arrival
& Departure</a></li>
<li><a href="http://www.gryffindor.me.uk/www.fantiski/Layout2-snowfun.html">Snow Fun</a></li>
<li> Links </li>
</ul>
</div><!-- end menu-background -->
<div id="Column2">
<div class="border">
<h1>Ski Apartment to Rent in Val d'Isère </h1>
<p>Welcome to the discription of this lovely self catering
ski apartment chalet owned by Fantiski. Fantiski in val
d’Isere are sure that you will enjoy your visit to
our apartment and hope you will find all the answers to
your questions on our site. If not please ring us and we
will be pleased to talk to you about our lovely self catering
ski apartment in Val d’Isere. </p>
<p>We Hope to see you in Val d’isere </p>
<p>Fantaski Rue du rondpoint 73150 Val d’sere</p>
</div>
<div class="border">
<table align="center" border="0" cellpadding="6" cellspacing="5" width="93%">
<tbody><tr>
<td height="84"><div align="center"><img src="template-test_files/smalpic1.png" alt="Pic1" height="54" width="59"></div></td>
<td><div align="center"><img src="template-test_files/smalpic2.png" alt="PIc2" height="54" width="59"></div></td>
<td><div align="center"><img src="template-test_files/smalpic5.png" alt="Pic5" height="54" width="59"></div></td>
<td rowspan="2"><div align="center"><img src="template-test_files/snow-board-pic.png" alt="Snow" height="156" width="200"></div></td>
</tr>
<tr>
<td height="58"><div align="center"><img src="template-test_files/smalpic3.png" alt="Pic3" height="54" width="59"></div></td>
<td><div align="center"><img src="template-test_files/smalpic4.png" alt="Pic4" height="54" width="59"></div></td>
<td><div align="center"><img src="template-test_files/smalpic6.png" alt="Pic6" height="54" width="59"></div></td>
</tr>
</tbody></table>
</div><!-- close border div> -->
</div><!-- close Column2 -->
</div> <!-- close Mid -->
<br class="brclear" />
<div class="footer">
<div class="footer-back">
<h1>Contact Fantiski on Tel: 01622 861 533 Fax: 01622
862 563</h1>
<p><a href="http://www.gryffindor.me.uk/www.fantiski/Layout1-index.html">Index</a> | <a href="http://www.gryffindor.me.uk/www.fantiski/Layout2-contact.html">Contact
Fantiski</a> | <a href="http://www.gryffindor.me.uk/www.fantiski/Layout7-details.html">Apartment Details</a> | <a href="http://www.gryffindor.me.uk/www.fantiski/Layout4-prices.html">Apartment
Prices</a> | <a href="http://www.gryffindor.me.uk/www.fantiski/Layout6-map.html">Val d'Isère Map</a> <br>
<a href="http://www.gryffindor.me.uk/www.fantiski/Layout4-arrivals.html">Arrival & Departure</a> | <a href="http://www.gryffindor.me.uk/www.fantiski/Layout2-snowfun.html">Snow
Fun</a> | <a href="http://www.gryffindor.me.uk/www.fantiski/Layout3-links.html">Links</a> </p>
<p>Website Design and Hosting by BITS Computers Bitsmedia -<a href="http://www.bits.co.uk/" target="_blank"> http://www.bits.co.uk</a>|
<a href="http://bitsmedia.net/" target="_blank">http://bitsmedia.net</a> </p>
</div><!-- close fotter-back -->
</div><!-- close footer -->
</div> <!-- close page -->
|
Hope that helps :)
The images in the center can be done with CSS and lists, actually. They call it 'floating thumbnails' and it works pretty well.
http://css-discuss.incutio.com/?page=GalleryFloat
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
Last edited by LadynRed : 01-21-2007 at 07:00 PM.
|