1) templates suck. Pay a professional or learning yourself always provides better results.
2) Remember that web design is two languages, not one .. Semantic HTML and CSS
3) As a beginner I found the book "Transcending CSS" by Andy Clake.
4) Speaking of watching your code I have the following suggestions:
a) Get rid of the div around the UL .. it's redundant as a UL is essentially a DIV ( block elements ) for LIs ( ULs and OLs can only contain LIs)
b) It's a good idea to wrap lose IMGs ( IMGs not in Ps or DIVs) in Ps or DIVs
c) You have a stray <p> tag right before that DIV (P tags cannot contain block elements such as DIVs or ULs) Besides you should be careful to properly close all tags! This is VERY VERY IMPORTANT
Your new, cleaned up, code:
Code:
a{display:inline;} /* for IE;*/
.logo{float: right; margin: 59px 9px 96px 3em;}
.nav {float:left ; margin: 59px 2em 52px 0; padding:0; list-style:none; }
.nav li{padding:0 0 1em 0; max-width:300px;}
.nav a, a.button {
display:inline-block;
text-align:center;
font-size: 90%;
color:#000;
text-decoration:none;
padding:.3em 1em;
border:1px solid #555;
background: #eee;
font-family: sans-serif;
text-shadow:1px 1px 0 #ccc;
margin:0;
-moz-border-radius:1em;
-webkit-border-radius:1em;
-o-border-radius:1em;
border-radius:1em;
box-shadow: inset 0 0 .65em #ccc,inset 2em 0 .65em #fff, 0 0 2px 1px #aaa ;
-webkit-box-shadow: inset 0 0 .65em #ccc,inset 2em 0 .65em #fff, 0 0 2px 1px #aaa ;
-moz-box-shadow: inset 0 0 .65em #ccc,inset 2em 0 .65em #fff, 0 0 2px 1px #aaa ;
}
<div class="logo"><img src="http://www.boiler-breakdown-repair-london.co.uk/pics/GSR GIF 200.gif" alt="gas safe logo" width="200" height="200" ></div>
<ul class="nav">
<li><a href="index.html">homepage</a></li>
<li><a href="http://www.boiler-breakdown-repair-london.co.uk/emergency-waterleak-repairs-southeast-london.html">waterleaks</a></li>
<li><a href="http://www.boiler-breakdown-repair-london.co.uk/emergency-gas-leak-repairs-bromley-south-east-london.html">gasleaks</a></li>
<li><a href="mailto:info@boiler-breakdown-repair-london.co.uk">Email A Question</a></li>
</ul>
Replaces
Code:
<img src="http://www.boiler-breakdown-repair-london.co.uk/pics/GSR GIF 200.gif" alt="gas safe logo" width="200" height="200" style="float: right; margin: 59px 9px 96px 99px; ">
...
</ul>
</div>
Hope that helps
Bookmarks