After a lot of questions here I felt like I could finally post my code for my first page and see if anything strikes anyone as being incorrect etc.I realize theres probably a ton of unnecessary css, incorrect use of css/font etc, I'm hoping for any comments on the major problems. I realize not everything can be addressed. I'll just have to learn the nuances as I go of right/wrong usgae of elements.
I believe this sort of thing is done here. If it's asking too much, no problem, I can continue and hope I handled all the aspects of the design etc properly.
There are a few things I am not sure on and have NOT added to the site yet, but BELIEVE should be there.
1. meta tags ( keywords) There seems to be a lot of debate on it's use/effectiveness
2. site index
3. anything concerning seo that I have left out
4. extra content that is helpful in the footer, i.e. repeating the navigation at the top etc.
5. "if statement " I see them all the time in source codes but have not or do not know the correct uses for them concerning browser compatability etc Maybe most are just notes for the code???
If I have left out anything that I may have "skimmed over" in the web design 101 category also please let me know.
After this I will make my css external and begin trying to figure out what pieces of the site I should turn into PHP include pieces.
AGAIN, thanks to everyone that helped me get this far and answered all my questions.
Ant
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="js/lightbox.js"></script>
<title>Streams of Dreams Fly Shop</title>
<style type="text/css">
* {
margin:0; /* zero out margin */
padding:0; /* zero out padding */
}
html, body {
height:100%; /* gives layout 100% height */
overflow:inherit;
background-repeat: repeat-y;
}
#grey_bar_info {
font-family: Arial, Helvetica, sans-serif;
font-size: 18px;
font-weight: normal;
text-transform: uppercase;
color: #CCCC99;
background-color: #333333;
height: 18px;
width: 972px;
text-align: center;
padding-top: 8px;
font-style: italic;
padding-bottom: 9px;
line-height: 18px;
}
#wrapper {
min-height:100%; /* gives layout 100% height */
width:1000px; /* centers #wrapper */
position:relative;
margin-top: 0;
margin-right: auto;
margin-bottom: 0;
margin-left: auto;
top: 15px;
text-align: center;
background-image: url(images/BG_blurr.jpg);
background-repeat: repeat-y;
border-top-width: medium;
border-right-width: medium;
border-bottom-width: medium;
border-left-width: medium;
border-top-color: #000000;
border-right-color: #000000;
border-bottom-color: #000000;
border-left-color: #000000;
}
#header {
/*position: absolute;*/
width: 972px;
/*left: 0px;*/
/*top: 0px;*/
height: 145px;
text-align: center;
margin-right: auto;
margin-left: auto;
border-top-width: 1px;
border-top-style: solid;
border-top-color: #999999;
}
#left_main {
background-color: #FFFFFF;
width: 962px;
/*left: 0px;*/
/*top: 100px;*/
padding-bottom: 10px;
padding-top: 0px;/*110px;*/
padding-right: 5px;
padding-left: 0px;
text-align: center;
margin-right: auto;
margin-left: auto;
}
a {
color: #996600;
}
.style3 {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
font-style: normal;
line-height: 20px;
color: #FFFFFF;
text-align: center;
}
* html #wrapper {
height:100%; /* IE6 treats height as min-height */
}
p {
font-size:11.5pt;
text-align:left; /* bottom padding clears the #footer */
font-family: Arial, Helvetica, sans-serif;
color: #333333;
line-height: 20px;
font-weight: normal;
}
#clearfooter {
height: 80px;
border: 0;
padding: 0;
background-color: #FFFFFF;
width: 972px;
text-align: center;
margin-right: auto;
margin-left: auto;
}
#footer {
height:70px;
width:972px;
background-color: #333333;
text-align: center;
margin-right: auto;
margin-left: auto;
padding-top: 15px;
padding-bottom: 15px;
margin-bottom: 30px;
}
.floatme_left {
float: left;
padding-right: 15px;
padding-bottom: 10px;
}
hr {
font-weight: bold;
margin-top: 15px;
margin-bottom: 15px;
clear: both;
}
#right_main {
width: 230px;/*110px;*/
/*padding-bottom: 80px;*/
float: right;
padding-top: 0px;
padding-right: 0px;
padding-bottom: 5px;
padding-left: 10px;
top: 0px;
border-left-width: 2px;
border-left-style: solid;
border-left-color: #333333;
margin-right: 5px;
margin-left: 10px;
}
.clear { clear: both; width: 100%; height: 0; visibility: hidden; }
#float_left {
float: left;
width: 660px;
padding-top: 10px;
padding-left: 20px;
padding-right: 22px;
}
#new_one {
margin-left:auto;
margin-right:auto;
width:100%;
background-color:#FFFFFF;
text-align: center;
padding-top: 8px;
padding-bottom: 8px;
font-family: Arial, Helvetica, sans-serif;
font-size: 20px;
font-weight: bold;
text-transform: uppercase;
margin-top: 15px;
}
#new_just {
margin-left:auto;
margin-right:auto;
width:100%;
background-color:#FFFFFF;
text-align: center;
padding-top: 8px;
padding-bottom: 8px;
font-style: italic;
color: #666666;
font-family: Arial, Helvetica, sans-serif;
}
.photo_caption1 {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 24px;
font-style: normal;
font-weight: normal;
text-transform: uppercase;
color: #333333;
}
#new_two {
margin-left:auto;
margin-right:auto;
width:100%;
background-color:#FFFFFF;
text-align: center;
padding-top: 8px;
padding-bottom: 8px;
font-family: Arial, Helvetica, sans-serif;
font-size: 20px;
font-weight: bold;
text-transform: uppercase;
margin-top: 15px;
}
#new_three {
margin-left:auto;
margin-right:auto;
width:100%;
background-color:#FFFFFF;
text-align: center;
padding-top: 8px;
padding-bottom: 8px;
font-family: Arial, Helvetica, sans-serif;
font-size: 20px;
font-weight: bold;
text-transform: uppercase;
}
h1 {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 34px;
font-weight: normal;
text-align: left;
clear: both;
color: #000000;
}
h6 {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #000000;
text-align: left;
font-weight: normal;
}
h5 {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 14px;
font-weight: normal;
text-align: left;
}
h4 {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 16px;
font-weight: normal;
text-align: left;
}
h3 {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 18px;
font-weight: normal;
text-align: left;
}
.date {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: normal;
color: #000000;
text-align: left;
}
h2 {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 24px;
color: #666666;
font-weight: normal;
line-height: 32px;
text-align: left;
}
#headerart {
height: 109px;
width: 972px;
text-align: center;
padding-top: 10px;
background-repeat: no-repeat;
}
/* nav styling */
#nav {
text-align:center;
height: 25px;
background-color:#333333;
}
#nav ul {
display:inline-block;
list-style:none;
}
* html #nav ul { /* Target IE6 */
display:inline;
}
*+html #nav ul { /* Target IE7 */
display:inline;
}
#nav li {
display:inline;
border-top-width: thick;
border-right-width: thick;
border-bottom-width: thick;
border-left-width: thick;
}
#nav a {
float:left;
text-decoration:none; /* variable width */
font-size: 15px;
height:25px;
line-height: 25px; /* vertically align text - set to the same value as the height */
display:inline;
padding-top: 0;
padding-right: 15px;
padding-bottom: 0;
padding-left: 15px;
}
#nav a:link
{
font-weight:normal;
color:#FFFFFF;
background-color:#333333;
text-align:center;
text-decoration:none;
text-transform:uppercase;
font-family: Arial, Helvetica, sans-serif;
padding-top: 0px;
padding-right: 15px;
padding-bottom: 0px;
padding-left: 15px;
font-style: italic;
}
#nav a:visited
{
font-weight:normal;
color:#FFFFFF;
background-color:#333333;
text-align:center;
text-decoration:none;
text-transform:uppercase;
font-family: Arial, Helvetica, sans-serif;
padding-top: 0px;
padding-right: 15px;
padding-bottom: 0px;
padding-left: 15px;
}
#nav a:hover
{
color:#FFFFFF;
background-color:#999999;
font-family: Arial, Helvetica, sans-serif;
font-weight: bolder;
padding-top: 0px;
padding-right: 15px;
padding-bottom: 0px;
padding-left: 15px;
}
#nav a:active
{
color:#FFFFFF;
background-color:#333333;
font-family: Arial, Helvetica, sans-serif;
font-weight: bolder;
padding-top: 0px;
padding-right: 15px;
padding-bottom: 0px;
padding-left: 15px;
}
/* nav styling END */
#mainimage {
height: 541px;
width: 972px;
background-color: #FFFFFF;
text-align: center;
margin-right: auto;
margin-left: auto;
padding: 0px;
}
.center_image {
display: block;
margin-left: auto;
margin-right: auto }
.photo_text {
margin-left:auto;
margin-right:auto;
width:100%;
background-color:#FFFFFF;
text-align: center;
padding-top: 8px;
padding-bottom: 8px;
font-family: Arial, Helvetica, sans-serif;
font-size: 20px;
font-weight: bold;
text-transform: uppercase;
margin-top: 15px;
}
.text_images {
float: left;
}
#directions_etc {
font-family: Arial, Helvetica, sans-serif;
position: absolute;
z-index: 2;
height: 31px;
width: 276px;
top: 24px;
font-size: 14px;
text-transform: uppercase;
text-align: right;
right: 30px;
}
/* LIGHTBOX */
#lightbox{ position: absolute; left: 0; width: 100%; z-index: 100; text-align: center; line-height: 0;}
#lightbox img{ width: auto; height: auto;}
#lightbox a img{ border: none; }
#outerImageContainer{ position: relative; background-color: #fff; width: 250px; height: 250px; margin: 0 auto; }
#imageContainer{ padding: 10px; }
#loading{ position: absolute; top: 40%; left: 0%; height: 25%; width: 100%; text-align: center; line-height: 0; }
#hoverNav{ position: absolute; top: 0; left: 0; height: 100%; width: 100%; z-index: 10; }
#imageContainer>#hoverNav{ left: 0;}
#hoverNav a{ outline: none;}
#prevLink, #nextLink{ width: 49%; height: 100%; background-image: url(data:image/gif;base64,AAAA); /* Trick IE into showing hover */ display: block; }
#prevLink { left: 0; float: left;}
#nextLink { right: 0; float: right;}
#prevLink:hover, #prevLink:visited:hover { background: url(images/prevlabel.gif) left 15% no-repeat; }
#nextLink:hover, #nextLink:visited:hover { background: url(images/nextlabel.gif) right 15% no-repeat; }
#imageDataContainer{ font: 10px Verdana, Helvetica, sans-serif; background-color: #fff; margin: 0 auto; line-height: 1.4em; overflow: auto; width: 100% ; }
#imageData{ padding:0 10px; color: #666; }
#imageData #imageDetails{ width: 70%; float: left; text-align: left; }
#imageData #caption{ font-weight: bold; }
#imageData #numberDisplay{ display: block; clear: left; padding-bottom: 1.0em; }
#imageData #bottomNavClose{ width: 66px; float: right; padding-bottom: 0.7em; outline: none;}
#overlay{ position: absolute; top: 0; left: 0; z-index: 90; width: 100%; height: 500px; background-color: #000; }
/* LIGHTBOX */
</style>
</head>
<body>
<div id="wrapper">
<div id="header">
<div id="headerart"><img src="images/bannertest.jpg" width="972" height="109" border="0" usemap="#Map">
<map name="Map">
<area shape="rect" coords="727,6,959,36" href="#" alt="newsletter">
<area shape="rect" coords="859,47,956,61" href="#" alt="directions">
<area shape="rect" coords="25,24,407,97" href="#" alt="home">
</map></div>
<div id="nav">
<ul>
<li><a href="#"></a></li>
<li><a href="#">Fly Shop </a></li>
<li><a href="#">Photos</a></li>
<li><a href="#">Trips</a></li>
<li><a href="#">Events</a></li>
<li><a href="#">Lessons</a></li>
<li><a href="#">Guide Services </a></li>
<li><a href="#">Contact Us </a></li>
<li><a href="#">About Us</a></li>
</ul>
</div>
</div>
<div id=mainimage><img src="images/compilationtest.jpg" width="972" height="502">
<div id="grey_bar_info">April <strong>2010</strong></div>
</div>
<div id="left_main">
<div id="right_main">
<div id="new_just"><img src="images/just-in-NEW.jpg" alt="just in" width="226" height="67"><br>
</div>
<div id="new_one"> <img src="images/makos.jpg" alt="mako reels" width="82%" height="163" class="photo_text"><span class="photo_caption1">MAKO REELS</span><br>
</div>
<div id="new_two"><span class="photo_caption1"><img src="images/fly-fishing-reels.jpg" alt="loop reels" width="260" height="228" class="photo_text"></span></div>
</div>
<div id="float_left">
<img src="images/shopnews.jpg" width="242" height="42" class="text_images"><br>
<h2> </h2>
<h2>Casting Clinics</h2>
<p><span class="date">(April 28, 2010) </span></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 officia deserunt mollit anim id est laborum.</p>
<p><a href="#">read more... </a></p>
<p> </p>
<h2>Bonefish Trip</h2>
<p><span class="date">(January 3, 2010) </span></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 officia deserunt mollit anim id est laborum.</p>
<p><a href="#">read more... </a></p>
<hr>
<h2>The Hendricksons have arrived</h2>
<p><span class="date">(April 28, 2010)</span></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 officia deserunt mollit anim id est laborum.</p>
<hr>
<h2>Saracione Mark IV Salmon and Steelhead Reels.</h2>
<p><span class="date">(April 28, 2010)</span></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.<img src="images/saracione_reel.jpg" alt="saracione reel" width="234" height="256" class="floatme_left"> Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.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 officia deserunt mollit anim id est laborum. 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 officia deserunt mollit anim id est laborum.<hr> </p>
<h2> </h2>
<h2>Thomas and Thomas fly rod blanks </h2>
<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 officia deserunt mollit anim id est laborum. </p>
<hr>
<h2>Patagonia deep wading jacket</h2>
<p><span class="date">(April 28, 2010)</span> </p>
<p><img src="images/81800_491.jpg" alt="patagonia jacket" width="256" height="256" class="floatme_left"></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 officia deserunt mollit anim id est laborum.</p>
<hr></div>
<p> </p> <!--needed-->
<div class="clear"> </div>
</div> <!--end of #left_main-->
<div id="clearfooter"> </div>
<div class="style3" id="footer">Copyright © 2010 Streams of Dreams Fly Shop <strong> |</strong> 324 Route 17 North <strong> |</strong> Upper Saddle River, NJ 07458 <strong> |</strong> ph (201) 934-1138 <strong> |</strong> fax (201) 934-1180<br>
Open Tuesday through Saturday, closed Sunday, Monday by appointment<br>
Mailing list signup • Directions • Contact us
<!-- end #wrapper -->
<!-- #footer sits outside the #wrapper -->
<!--</div>-->
<!-- end #wrapper -->
</div>
</div>
</body>
</html>