C and S Design.
Search Friendly Programming and Design



Get this CSS: Click to download the CSS file.

CSS code for this design. (Photo Gallery Two)

/* CSS styles */
body {
	text-align:center;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	color: #666666;
	font-size:1em;
	background-color:#FFFFF0;
}
h1,h2 {
	color:#0033CC;
}
h1 {
	font-size:1.8em;
}
h2 {
	font-size:1.4em;
}
#main {
	position:relative;
	width:760px;
	text-align:left;
	margin:0px auto;
}
#pic_main {
	position:relative;
	width:850px;
	text-align:left;
	margin:0px auto;
}
#header {
	position:relative;
	text-align:center;
	width:100%;
	height:120px;
}
#header img {
	position:relative;
	border:0px;
}
#menu {
	position:relative;
	margin:5px auto;
}
#left_side {
	position:relative;
	width:120px;
	float:left;
	padding:5px 2px;
}
#content {
	position:relative;
	float:left;
	padding:5px 2px;
	margin:0px 0px 5px 2px;
}
.gallery {
	position:relative;
	background-color:#transparent;
	float:left;
	padding:0px 0px;
	margin:10px 15px 0px 0px;
	text-align:center;
/*	margin:0px auto 20px auto;*/
}
.gallery img {
	border:15px outset #66CC66;
}
.text_block {
	float:left;
	width:300px;
	padding:40px 0px 0px 10px;
}
#main_pic {
	position:relative;
	background-color:#transparent;
	margin:0px auto;
	text-align:center;
}
#main_pic img {
	border:25px inset #66CC66;
	margin:0px auto;
}
.caption {
	position:relative;
	font-size:0.8em;
	float:left;
	text-align:center;
	margin:0px auto 0px auto;
}	
.clearing {
	clear:both;
}
.para {
	position:relative;
	text-indent:15px;
	font-size:1em;
	padding:5px;
}
.centre {
	text-align:center;
}
#crumbtrail {
	position:relative;
	float:left;
	font-size:0.75em;
	background-color: transparent;
	text-decoration:none;
	text-align:left;
	z-index:20;
}
#crumbtrail a:link {
	color:#0000FF;
}
#crumbtrail a:visited {
	color:#0000FF;
}
#crumbtrail a:hover {
	color:#FFFFFF;
	background-color: #000000;
	text-decoration:underline;
}
#crumbtrail a:active {
	color:#0000FF;
}
#footer {
	position:relative;
	text-align:center;
	font-size:0.8em;
	width:768px;
	margin:0px auto;
}
#footer img {
	border:0px;
	margin:0px;
}
#footer #w3c_css{
	float:right;
}
#footer  #w3c_html{
	float:left;
}

HTML code for this design. (Photo Gallery Two)


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>CSS Based Templates - C and S Design</title>
<meta http-equiv="Content-Type" content="text/html; _ 
	charset=iso-8859-1"/>
<meta name="keywords" content=""/>
<meta name="description" content=""/>
<link type="text/css" rel="stylesheet" _ 
	href="style.css" />
</head>

<body>
<div id="main">
<div id="header"><a href="/"><img _ 
	src="/images/logo/icon_header.gif" alt="SE Friendly _ 
	Programming Logo"/></a></div>
<!-- header -->
<div id="menu">


<h1>Search Friendly Programming</h1>
<h2>CSS Based Templates - Photo Gallery</h2>
</div>
<!-- menu -->

<div id="left_side">Navigation
<br />
<br />
<br />
</div>
<div id="content">
<div class="text_block">Photograph of the River Ribble _ 
	and River Douglas confluence. Taken from the marsh flats at Naze _ 
	Point,  Freckleton and looking across the Salt Flats towards _ 
	Ormskirk.</div>
<div class="gallery">
<a href="photos.asp?pic=1"><img _ 
	src="photos/ribble-douglas-confluence_t.png" alt="River _ 
	Ribble and Douglas Confluence"/></a>
<span class="caption"><a _ 
	href="photos.asp?pic=1">River Ribble and Douglas _ 
	Confluence</a></span>
</div>
<div class="clearing"></div>
<!-- clearing -->
<div class="text_block">A tree trunk dropped by the _ 
	high water level.
<br />
This is about 200 yards or so along the flats from the average high _ 
	water.</div>
<div class="gallery">
<a href="photos.asp?pic=2"><img _ 
	src="photos/ribble-shore-flotsam_t.png" alt="Ribble _ 
	Shore Line Flotsam" /></a>
<span class="caption"><a _ 
	href="photos.asp?pic=2">Ribble Shore Line _ 
	Flotsam</a></span>
</div>
<div class="clearing"></div>
<!-- clearing -->
<div class="text_block">Stanley Park, Blackpool. _ 
	Bluebells along side one of the several lakeside walks around the park.
<br />
Just to show that Blackpool is not all glitz, glitter and sticks of _ 
	rock.
</div>
<div class="gallery">
<a href="photos.asp?pic=3"><img _ 
	src="photos/stanley-park-blubells_t.png" alt="Stanley _ 
	Park Blubells" /></a>
<span class="caption"><a _ 
	href="photos.asp?pic=3">Stanley Park _ 
	Blubells</a></span>
</div>
<div class="clearing"></div>
<!-- clearing -->
<div class="text_block">Stanley Park, Blackpool. Just _ 
	some of Natures artwork.
<br />
The bright lights and amusements are only a 15 minute stroll away, but _ 
	it's in another world when you are here.
</div>
<div class="gallery">
<a href="photos.asp?pic=4"><img _ 
	src="photos/stanley-park-tree_t.png" alt="Stanley Park _ 
	Tree" /></a>
<span class="caption"><a _ 
	href="photos.asp?pic=4">Stanley Park _ 
	Tree</a></span>
</div>
</div>
<!-- content -->

<div class="clearing"></div>
<!-- clearing -->

<div id="footer">
<a class='img' _ 
	href='http://validator.w3.org/check/referer'><img id='w3c_html' _ 
	src='/images/w3org/w3c_xhtml.gif' alt='Valid XHTML 1.0 Strict!' _ 
	/></a>
<a class='img' _ 
	href='http://jigsaw.w3.org/css-validator/'><img id='w3c_css' _ 
	src='/images/w3org/w3ccss.gif' alt='Valid CSS!' /></a>
<b>C and S Design<br />Search Engine Friendly _ 
	Programming</b><br/>
	<span class='small'>Demonstrations, Tutorials and Code _ 
	Samples</span>

</div><!-- footer -->

<!-- footer -->

</div>
<!-- main -->

</body>
</html>




Valid HTML 4.01! Valid CSS! copyright © C and S Design 2004 - 2005
Website Design and SE Friendly Coding C and S Design