OK, I'm sure most of you have seen CSS Zen Garden.
It illustrates better than anything, how flexible CSS is. It shows how amazingly different webpages can be while they have the exact same HTML.
SO, I thought it would be cool to have a gallery template we could do the same thing with, and here it is.
HTML
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Page Title : Include Keywords</title>
<link rel="stylesheet" type="text/css" href="styles.css" media="screen" />
<!--[if IE]><link rel="stylesheet" type="text/css" href="iestyles.css" media="screen" /><![endif]-->
</head>
<body>
<div id="container">
<div id="header">
<h1>Main Description. Include Keywords</h1>
</div>
<div id="gallery_wrapper">
<div id="gallery_header">
<h2>Longer, more detailed description. Include Keywords again Longer, more detailed description. Include Keywords again Longer, more detailed description. Include Keywords again</h2>
</div>
<div class="nav_links">
<ul>
<li><a href="#">Link 1</a></li>
<li><a href="#">Link 2</a></li>
<li><a href="#">Link 3</a></li>
</ul>
</div>
<div class="content">
<div class="thumbs">
<a href="#"><img src="manuel_uncut/images/t1.jpg" alt="thumb" /></a>
<p>2 Minute Preview Clip from ManuelUncut</p>
<p><a href="#">Download the Full Length Video</a></p>
</div>
<div class="thumbs">
<a href="#"><img src="manuel_uncut/images/t1.jpg" alt="thumb" /></a>
<p>2 Minute Preview Clip from ManuelUncut</p>
<p><a href="#">Download the Full Length Video</a></p>
</div>
</div>
<div class="ad_wrapper">
<div class="ad01">
<h3><a href="#">Main Link Out to Tour</a></h3>
</div>
<div class="ad02">
<p>Keyword rich paragraph of text. Keyword rich paragraph of text. Keyword rich paragraph of text.
Keyword rich paragraph of text. Keyword rich paragraph of text. Keyword rich paragraph of text.</p>
</div>
</div>
<div class="content">
<div class="thumbs">
<a href="#"><img src="manuel_uncut/images/t1.jpg" alt="thumb" /></a>
<p>2 Minute Preview Clip from ManuelUncut</p>
<p><a href="#">Download the Full Length Video</a></p>
</div>
<div class="thumbs">
<a href="#"><img src="manuel_uncut/images/t1.jpg" alt="thumb" /></a>
<p>2 Minute Preview Clip from ManuelUncut</p>
<p><a href="#">Download the Full Length Video</a></p>
</div>
</div>
<div class="ad_wrapper">
<div class="ad01">
<h3><a href="#">Main Link Out to Tour</a></h3>
</div>
<div class="ad02">
<p>Keyword rich paragraph of text. Keyword rich paragraph of text. Keyword rich paragraph of text.
Keyword rich paragraph of text. Keyword rich paragraph of text. Keyword rich paragraph of text.</p>
</div>
</div>
<div class="footer_links">
<ul>
<li><a href="#">2257 Link</a></li>
<li><a href="#">Webmasters</a></li>
</ul>
</div>
</div>
</div>
</div>
</body>
</html>
CSS
Code:
@charset "utf-8";
* {margin: 0; padding: 0;}
body {
background: #040404;
background-image: url(manuel_uncut/images/body_bg.jpg);
background-repeat: no-repeat;
background-position:top;
margin: 0;
padding: 0;
font-family: "Trebuchet MS", Georgia, "Times New Roman", Times, serif;
font-style: normal;
font-variant: normal;
font-weight: normal;
font-size: medium;
line-height: normal;
word-spacing: normal;
letter-spacing: normal;
text-decoration: none;
text-transform: none;
text-align: left;
text-indent: 0ex;
}
#container {width: 800px; margin: 0 auto;}
#header {
width:780px;
height:49px;
text-align:right;
padding:95px 20px 0 0;
font-size:14px;
text-transform:uppercase;
font-weight:bold;
}
.clear{clear: both;}
#gallery_wrapper {width:800px;}
#gallery_header {
width:500px;
height:90px;
padding:10px 20px 0 280px;
font-size:12px;
}
/*------------------------( nav links )---------------------------------------------( nav links )------------*/
.nav_links {width:790px; height:35px; padding:10px 0 0 10px;
background-image: url(manuel_uncut/images/nav_bg.gif); background-repeat: repeat-x;
border-bottom:#000000; border-bottom-width:1px; border-bottom-style:solid;
border-top:#000000; border-top-width:1px; border-top-style:solid;}
.nav_links a {
color: #fff; text-decoration: underline;}
.nav_links a:visited {
color: #fff;}
.nav_links a:hover {
color: #FF0000; text-decoration: none;}
.nav_links ul {
margin: 0; padding-right:30px; text-align:left;}
.nav_links li {
list-style-type: none; display: inline; color:#fff; padding-right:20px;}
/*------------------------( content )------------------------------------------------------( content )------------*/
.content {height: 400px; width:800px; background-color:#FFFFFF;}
.thumbs {
width:400px;
height:400px;
float:left;
background-color:#FFFFFF;
}
.thumbs img {
margin:8px 6px 10px 6px;
border:#000000; border-width:medium; border-style:solid;
}
.thumbs p {text-align:center;}
.thumbs p a:hover {color:#FF0000;}
/*--------------------------( ad )------------------------------------------------------------( ad )------------*/
.ad_wrapper {
width:760px;
height:140px;
background-color:#FFFFFF;
clear:both;
padding:10px 20px 20px 20px;
}
.ad01 {
width:760px;
text-align:center;
}
.ad01 a {
color:#0000FF;
font-size:36px;
}
.ad01 a:hover {
color:#666666;
}
.ad02 {
width:760px;
text-align:center;
}
.ad02 a {
color:#0000FF;
font-size:16px;
}
.ad02 a:hover {
color:#666666;
}
/*----------------------( footer )-----------------------------------------------------------------( footer )-----*/
.footer_links {width:790px; height:35px; padding:10px 0 0 10px;
background-image: url(manuel_uncut/images/nav_bg.gif); background-repeat: repeat-x;
border-bottom:#000000; border-bottom-width:1px; border-bottom-style:solid;
border-top:#000000; border-top-width:1px; border-top-style:solid;}
.footer_links a {
color: #fff; text-decoration: underline; font-size:10px;}
.footer_links a:visited {
color: #fff;}
.footer_links a:hover {
color: #FF0000; text-decoration: none;}
.footer_links ul {
margin: 0; padding-right:30px; text-align:left;}
.footer_links li {
list-style-type: none; display: inline; color:#fff; padding-right:20px;}
And here's the gallery
I kept this real simple, and the code as clean as possible so even CSS noobs can dive right in.
I already have a dozen ideas for how this layout can be altered, so grab the code and make your own.
and if you want custom versions of this template for your program, hit me up. Imagine how cheap you can make a ton of templates faster than ever before.
Thanks.