Return to Snippet

Revision: 20280
at November 11, 2009 08:41 by morvan


Updated Code
/* style.css */

/* ########## STANDARD HTML ELEMENTS ########## */

BODY{
	font-family: Gill sans, verdana, sans-serif;
	font-size: 16px;
	color: #333;
	padding: 5%;
	width: 90%;
	height: 90%;
	}

P{ margin: 0 0 10px 0; }

H1{
	font-size: 2em;
	margin: 0 0 20px 0;
	}
	
H2{
	font-size: 1.5em;
	margin: 0 0 10px 0;
	}
	
H3{
	font-weight: bold;
	margin: 0 0 10px 0;
	}
	
STRONG{ font-weight: bold; }

EM{ font-style:italic }

A:link, A:visited, A:active { font-size: inherit; color: #666699; }
A:hover { color: #669999; }

INPUT.inp, TEXTAREA.inp{
	border: 1px solid #999;
	padding: 4px;
	width: 200px;
	margin: 0 0 10px 0;
	}
	
/* ########## MAIN DIV ELEMENTS ########## */

DIV#wrapper{
	overflow: hidden; /* clear floats */
	}

DIV#header{
	float: left; display:inline;
	width: 100%;
	}
	
DIV#content{
	float: left; display: inline;
	width: 100%;
	}

/* index.php */

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
	<title></title>
	<link rel="stylesheet" href="reset.css" type="text/css" />
	<link rel="stylesheet" href="style.css" type="text/css" />
</head>
<body>
 
	<div id="wrapper">
 
		<div id="header">
 
			<img src="logo.jpg" alt="logo" />
 
		</div><!-- END header -->
 
		<div id="content">
			<h1>Header</h1>
			<p>Lorem ipsum...</p>
		</div><!-- END content -->
 
 	</div><!-- END wrapper -->
 
</body>
</html>

Revision: 20279
at November 11, 2009 08:39 by morvan


Initial Code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
	<title></title>
	<link rel="stylesheet" href="<?php echo base_url();?>style/reset.css" type="text/css" />
	<link rel="stylesheet" href="<?php echo base_url();?>style/style.css" type="text/css" />
</head>
<body>
 
	<div id="wrapper">
 
		<div id="header">
 
			<img src="logo.jpg" alt="logo" />
 
		</div><!-- END header -->
 
		<div id="content">
			<h1>Header</h1>
			<p>Lorem ipsum...</p>
		</div><!-- END content -->
 
 	</div><!-- END wrapper -->
 
</body>
</html>

Initial URL


Initial Description


Initial Title
Very simple XHTML template

Initial Tags
template, html, xhtml, simple

Initial Language
XHTML