Example CSS HTML Template Code
Example CSS HTML Template Code
doctype html>
<html>
<head>
<title>HTML template</title>
</head>
<body>
<div id="wrapper">
<header>
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="blog.html">Blog</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
<p></p>
</section>
<p></p>
</section>
<section id="three">
<h2>add content here</h2>
<p></p>
</section>
<footer>
<h4>Footer</h4>
<p>Footer text</p>
</footer>
</div>
</body>
</html>
@charset "utf-8";
/* CSS Document */
body {
margin: 0;
padding: 0;
border: 0;
width: 100%;
background: #fff;
color: #666;
a{
color: #1E6FFF;
a:hover {
color: #fff;
background: #1E6FFF;
text-decoration: none;
h1, h2, h3 {
padding: 0;
p{
padding: 0;
}
img {
width:100%;
/* Navigation styles */
nav {
width: 100%;
nav ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #444;
text-align: center;
nav li {
float: left;
font-size: 1.2em;
line-height: 40px;
height: 40px;
nav a {
text-decoration: none;
color: #fff;
display: block;
text-transform: uppercase;
padding: 4px;
font-weight: bold;
width: 120px;
background-color: #000000;
#wrapper {
padding: 5px;
width: 960px;
header {
height: 100px;
padding: 0 15px;
section {
float: left;
padding: 15px;
margin: 5px;
#one {
width: 300px;
background: #E8E8E8;
#two {
width: 500px;
background: #8B8B8B;
#three {
width: 840px;
footer {
clear: both;
padding: 0 15px;
#wrapper {
width: 100%;
nav a {
width: 80px;
}
@media screen and (max-width: 600px) {
header {
height: 50px;
padding: 0;
nav a {
width: 100%;
padding:0 2px;
margin:2px;
nav li {
font-size: 0.7em;
line-height: 20px;
height: 20px;
h1, h2 {
font-size: 1em;
.headingtext {
display: none;
section {
width: auto;
float: none;
}