phillipsdj
08-29-2010, 04:15 PM
**Edit** Please ignore this, I just realised that my images are vastly different to the originals!
Hi all,
I am trying to build a web site for the first time and this is my first attempt with HTML and CSS. To try and get to grips with both languages/systems I have copied the source from one of the free templates provided by my host and replicated it manually whilst changing bits to make it more personal to me.
Unfortunately, when I have replaced their header image with my own something has gone wrong and it has shifted so far to the right that I can only see a tiny section of it. Would any of you mind taking a quick look at my code below and let me know if anything jumps out at you as being wrong?
<html>
<head>
<title>www.phillipsdj.co.uk</title>
<style type="text/css">
body, p, td{
font-family:Arial;
font-size: 10pt;
font-weight:normal;
colour:#000000;
margin:0px
}
blockquote, ol, ul{
margin: 0px 0px 0px 40px
padding: 0px;
}
h1{
font-family:Arial;
font-size: 22pt;
font-weight:normal;
colour:#000000;
margin:opx;
}
h2{
font-weight: normal;
font-size: 18pt;
margin: 0px
}
h3{
font-weight: normal;
font-size: 16pt
margin: 0px;
}
h4{
font-weight: normal;
font-size: 14pt;
margin: 0px;
}
pre{
margin:0px;
}
a{
colour:#738fac;
text-decoration: none;
}
a:hover{
colour:#738fac;
text-decoration: underline;
}
.menu td a{
font-family:Arial;
colour:#000000;
font-size: 10pt;
text-decoration: nonw;
font-weight:normal;
}
.menu td a:hover{
color:#738fac;
text-decoration:none;
}
</style>
</head>
<body style="background:url(header1.jpg) repeat-x; margin:0px>
<div id="maindiv1" align="left">
<div id="maindiv2" style="width:767px; position:relative ">
<table width="767" cellpadding="0" cellspacing="0" align="centre" border="0" align="center" border ="0" id="maintable"
style="position:relative; border-collapse:collapse">
<tbody>
<tr>
<td valign="top" style="background:#FFFFFF; padding:20px 20px 60px 20px ">
<table width="100%" height="266" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse" >
<tbody>
<tr>
<td valign="top" style="background-image: url(header1.jpg) no-repeat top right; padding-left:30px; padding-right:30px ">
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<h1><b>www.phillipsdj.co.uk</b></h1>
<h1><b> also known as <i>Le Geek</i></b><h1>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p>
<table allign=left class="menu" cellpadding="0" border="0" style="border-collapse:collapse" meta="menu" metaid="My Website 2">
<tr><td style="padding-right:22px " align="left"><font colour="#738fac"><b>Home</b>,</font></td></tr></table>
</p>
</td>
</tr>
</tbody>
</table>
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse" >
<tbody>
<tr>
<td valign="top" style="padding-left:30px ">
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p align="justify">Insert Text here Insert Text here Insert Text here Insert Text here Insert Text here Insert Text here Insert Text here Insert Text here Insert Text here Insert Text here Insert Text here Insert Text here Insert Text here</p>
<p> </p>
<p>Insert Text here Insert Text here Insert Text here Insert Text here Insert Text here Insert Text here Insert Text here Insert Text here Insert Text here Insert Text here Insert Text here Insert Text here Insert Text here Insert Text here Insert Text here Insert Text here Insert Text here</p>
<p> </p>
<p> </p>
<p> </p>
<table align="left" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse" >
<tbody>
<tr>
<td valign="top" style="background:#000000; padding:45px 18px ">
<h1><font colour="#FFFFFF"><b>Test</b></font></h1>
<h1><font colour="#FFFFFF"><b> Dave Test</b></font></h1>
<h1><font colour="#FFFFFF"><b> Kate Jack Jill</b></font></h1>
<h1><font colour="#FFFFFF"><b>Mwah!!</b></font></h1>
</td>
</tr>
</tbody>
</table><img src="/images/apples-and-water-lily/Sunflower2.jpg" align="right">
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</td>
<td valign="top" width="156" align="right" style="padding-right:32px; padding-left:15px ">
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<img src="/images/apples-and-water-lily/Sunflower2.jpg">
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p align="right"><span style="font-size:8pt "><a href="#"><font colour="000000">Test Link 1</font></a></span></p>
<p> </p>
<p align="right"><span style="font-size:8pt "><a href="#"><font colour="000000">Test Link 2</font></a></span></p>
<p> </p>
<p align="right"><span style="font-size:8pt "><a href="#"><font colour="000000">Test Link 3</font></a></span></p>
<p> </p>
<p align="right"><span style="font-size:8pt "><a href="#"><font colour="000000">Test Link 4</font></a></span></p>
<p> </p>
<p align="right"><span style="font-size:8pt "><a href="#"><font colour="000000">Test Link 5</font></a></span></p>
<img width="166" height="1">
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</body>
</html>
Many thanks in advance for any help you can provide. :D
Dave
Hi all,
I am trying to build a web site for the first time and this is my first attempt with HTML and CSS. To try and get to grips with both languages/systems I have copied the source from one of the free templates provided by my host and replicated it manually whilst changing bits to make it more personal to me.
Unfortunately, when I have replaced their header image with my own something has gone wrong and it has shifted so far to the right that I can only see a tiny section of it. Would any of you mind taking a quick look at my code below and let me know if anything jumps out at you as being wrong?
<html>
<head>
<title>www.phillipsdj.co.uk</title>
<style type="text/css">
body, p, td{
font-family:Arial;
font-size: 10pt;
font-weight:normal;
colour:#000000;
margin:0px
}
blockquote, ol, ul{
margin: 0px 0px 0px 40px
padding: 0px;
}
h1{
font-family:Arial;
font-size: 22pt;
font-weight:normal;
colour:#000000;
margin:opx;
}
h2{
font-weight: normal;
font-size: 18pt;
margin: 0px
}
h3{
font-weight: normal;
font-size: 16pt
margin: 0px;
}
h4{
font-weight: normal;
font-size: 14pt;
margin: 0px;
}
pre{
margin:0px;
}
a{
colour:#738fac;
text-decoration: none;
}
a:hover{
colour:#738fac;
text-decoration: underline;
}
.menu td a{
font-family:Arial;
colour:#000000;
font-size: 10pt;
text-decoration: nonw;
font-weight:normal;
}
.menu td a:hover{
color:#738fac;
text-decoration:none;
}
</style>
</head>
<body style="background:url(header1.jpg) repeat-x; margin:0px>
<div id="maindiv1" align="left">
<div id="maindiv2" style="width:767px; position:relative ">
<table width="767" cellpadding="0" cellspacing="0" align="centre" border="0" align="center" border ="0" id="maintable"
style="position:relative; border-collapse:collapse">
<tbody>
<tr>
<td valign="top" style="background:#FFFFFF; padding:20px 20px 60px 20px ">
<table width="100%" height="266" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse" >
<tbody>
<tr>
<td valign="top" style="background-image: url(header1.jpg) no-repeat top right; padding-left:30px; padding-right:30px ">
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<h1><b>www.phillipsdj.co.uk</b></h1>
<h1><b> also known as <i>Le Geek</i></b><h1>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p>
<table allign=left class="menu" cellpadding="0" border="0" style="border-collapse:collapse" meta="menu" metaid="My Website 2">
<tr><td style="padding-right:22px " align="left"><font colour="#738fac"><b>Home</b>,</font></td></tr></table>
</p>
</td>
</tr>
</tbody>
</table>
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse" >
<tbody>
<tr>
<td valign="top" style="padding-left:30px ">
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p align="justify">Insert Text here Insert Text here Insert Text here Insert Text here Insert Text here Insert Text here Insert Text here Insert Text here Insert Text here Insert Text here Insert Text here Insert Text here Insert Text here</p>
<p> </p>
<p>Insert Text here Insert Text here Insert Text here Insert Text here Insert Text here Insert Text here Insert Text here Insert Text here Insert Text here Insert Text here Insert Text here Insert Text here Insert Text here Insert Text here Insert Text here Insert Text here Insert Text here</p>
<p> </p>
<p> </p>
<p> </p>
<table align="left" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse" >
<tbody>
<tr>
<td valign="top" style="background:#000000; padding:45px 18px ">
<h1><font colour="#FFFFFF"><b>Test</b></font></h1>
<h1><font colour="#FFFFFF"><b> Dave Test</b></font></h1>
<h1><font colour="#FFFFFF"><b> Kate Jack Jill</b></font></h1>
<h1><font colour="#FFFFFF"><b>Mwah!!</b></font></h1>
</td>
</tr>
</tbody>
</table><img src="/images/apples-and-water-lily/Sunflower2.jpg" align="right">
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</td>
<td valign="top" width="156" align="right" style="padding-right:32px; padding-left:15px ">
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<img src="/images/apples-and-water-lily/Sunflower2.jpg">
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p align="right"><span style="font-size:8pt "><a href="#"><font colour="000000">Test Link 1</font></a></span></p>
<p> </p>
<p align="right"><span style="font-size:8pt "><a href="#"><font colour="000000">Test Link 2</font></a></span></p>
<p> </p>
<p align="right"><span style="font-size:8pt "><a href="#"><font colour="000000">Test Link 3</font></a></span></p>
<p> </p>
<p align="right"><span style="font-size:8pt "><a href="#"><font colour="000000">Test Link 4</font></a></span></p>
<p> </p>
<p align="right"><span style="font-size:8pt "><a href="#"><font colour="000000">Test Link 5</font></a></span></p>
<img width="166" height="1">
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</body>
</html>
Many thanks in advance for any help you can provide. :D
Dave