New User
joined:Apr 10, 2010
posts: 17
votes: 0
I apologize if I'm not posting to the forum correctly.
1. When I try to add a DOCTYPE declaration to my code, it causes problems in FF (Welcome heading moves to the right and image holder disappears) as well as in IE8 (Welcome heading moves to the right). I would like to use the Transitional Doctype.
2. Is there a way to make the footer always be at the bottom of the page but in a higher position so one does not have to use the scroll bar to view it. In IE8, there is some color background beneath the footer that I would like not to show.
3. I would like my HTML code (and CSS) to validate without errors in W3C. I'm sure that both need some modifications and clean up.
A lot of my code has been copied/pasted and although the web page content displays the way I want, I don't always understand why. I am quite an amateur to writing code so I appreciate the help of those with more expertise than me. Here is my code:
<head>
<title>AG</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
body {background-image: url(..//WebSite/Gradient-BG.jpg); background-position: center; background-repeat:repeat-y; repeat-x}
body {height:100%; margin: 0; padding: 20; text-align: center;}
body {font-size:100%; line-height:1.125em}
h1 {background-color:inherit; margin-left:8px; margin-top:16px; margin-bottom:8px; font-family:"Trebuchet MS", Arial, sans-serif; font-size:1.55em; color:rgb(153,0,51)}
p {background-color:inherit; margin-left:8px; margin-top:12px; margin-right: 8px; text-align:justify; font-family:Tahoma, Arial, sans-serif; font-size:1.0em; color:#000000}
#wrapper {background-color: rgb(255,222,239); margin: 0 auto; text-align: center; vertical-align: middle; width: 52%;}
ul {margin: 0; padding: 0; list-style: none; width:150px}
ul li {position: relative; width:148px;border:1px solid rgb(153,0,51);font:100% "MS Trebuchet", Arial, sans-serif;}
ul li a {display:block;text-decoration:none; color:rgb(153,0,51); background:rgb(255,222,239); line-height:2em; height:2.5em; padding:0 5px}
li li a {background:rgb(153,0,51)}
/* set dropdown to default */
li:hover li a, li.over li a {color:rgb(153,0,51); background-color:rgb(255,222,239);}
/* this sets all hovered lists to rgb(153,0,51) */
li a:hover,
li:hover a, li.over a,
li:hover li a:hover, li.over li a:hover {color:#000000; background-color:rgb(153,0,51);}
td.mainContentBox {border-style:solid; border-width:1px; border-color:rgb(153,0,51)}
table.footerBox {border-style:solid; border-width:0px; border-color:rgb(153,0,51)}
div.footer1 {font-family:Tahoma, Arial, sans-serif; font-size:0.675em; text-align:center}
div.footer2 {font-family:Tahoma, Arial, sans-serif; font-size:0.65em; text-align:center}
</style>
</head>
<body>
<table id="wrapper" border="0" bordercolor="#990033">
<tr>
<td valign="top" height="898"> <br>
<table width="96%" border="0" align="center">
<tr>
<td valign="top"><img src="WebSite/untitled-1.jpg" width="440" height="88">
<td>
<div align="right"><img src="WebSite/untitled-2.jpg" width="294" height="88"></div>
</td>
</tr>
</table>
<br>
<table width="96%" border="0" align="center">
<tr>
<td><img src="WebSite/Image-DividerLine.jpg" width="100%" height="1"></td>
</tr>
</table>
<br>
<table width="96%" align="center">
<tr>
<td class="navigationBox" width="19%" valign="top">
<div id="menu" align="left" 363px; top: 185px>
<ul class="clearfix">
<li><a href="#">Home</a> </li>
<li><a href="#">After School</a> </li>
<li><a href="#">Contact</a> </li>
<li><a href="#">Gallery</a> </li>
<li><a href="#">Girl Scouts</a> </li>
<li><a href="#">Parties</a> </li>
<li><a href="#">Programs</a> </li>
<li><a href="#">Registration</a> </li>
<li><a href="#">Summer</a> </li>
<li><a href="#">Testimonials</a> </li>
</ul>
</div>
</td>
<td class="emptyBox" width="4%"><img src="WebSite/spacer.gif" width="1" height="1"></td>
<td class="mainContentBox" width="77%" valign="top">
<h1>Welcome</h1>
<table width="320" align="right" cellspacing="5">
<tr>
<td align="center" valign="top">
<div class="mainContentPix"><img src="WebSite/untitled-3.jpg" width="300" height="117" alt="" border="2"></div>
</td>
</tr>
</table>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud
exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute
irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud
exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute
irure dolor in reprehenderit in voluptate velit.</p>
</td>
</tr>
</table>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<table width="96%" border="0" align="center">
<tr>
<td><img src="WebSite/Image-DividerLine.jpg" width="100%" height="1"></td>
</tr>
</table>
<table class="footerBox" width="96%" align="center">
<tr>
<td>
<div class="footer1">Business Name • Street, City, State, Zip • Telephone:
#*$!-#*$!-#*$!X<br>
email address link</div>
</td>
</tr>
<tr>
<td>
<div class="footer2"><br>
© 2011. All rights reserved.</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>