【Sample】Layout Responsive 3column in HTML5

Demo

 Enter to Demo


HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>【Sample】Layout Responsive 3column in HTML5 - WEB DESIGN LAB</title>
<meta name="description" content="">
<meta name="keywords" content="">
<!--Require Mobile-->
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=10.0, user-scalable=yes">
<!--Require Stylesheet-->
<link rel="stylesheet" href="sample.css">
<!--Require JavaScript-->
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script>
<![endif]-->
<script src="sample.js"></script>
</head>
<body>
<div id="wrapper">
<header>
<h2><a href="/en/">WEB DESIGN LAB</a></h2>
</header>
<div id="contents">
<nav>
<ul>
<li>nav</li>
</ul>
</nav>
<div id="main">
<article>
<section>
<h3>Layout Responsive 3column in HTML5</h3>
<p>It is the template sample of the super simple responsive 3 column layout which I laid out in HTML5. In the mobile site, in the PC site, a break point is set in more than 769px to 768px. Because it is a simple design, please utilize the coding by all means easily.m(_ _)m</p>
</section>
</article>
<!--main--></div>
<aside>
<p>aside</p>
</aside>
<!--contents--></div>
<footer>
<div id="copyright">&copy;WEB DESIGN LAB<!--copyright--></div>
</footer>
<!--wrapper--></div>
</body>
</html>
CSS

* {
	margin: 0;
	padding: 0;
}
html {
	overflow-y: scroll;
}
html,body {
	height: 100%;
}
img {
	border: none;
}
ul,ol {
	list-style: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
body {
	font-size: 100%;
	line-height: 1.6;
	font-family: "Hiragino Kaku Gothic Pro",Meiryo,"MS PGothic",sans-serif;
}
h1,h2,h3,h4,h5,h6 {
	font-size: 100%;
}
a,a:link,a:visited {
	color: #4776AF;
	text-decoration: none;
}
a:hover,a:active {
	color: #9fb7d4;
}
article,aside,details,footer,header,main,menu,nav,section,summary {
	display: block;
}
/*------------------------------------------------------------------*/
.sample-demo {
	margin: 0 auto 40px auto;
	padding: 0;
}
h2 {
	width: 208px;
	padding: 10px 0;
	margin: 0 auto;
}
h3 {
	text-align: center;
	font-size: 18px;
	font-weight: normal;
	padding: 25px 0 10px 10px;
}
h4,h5 {
	text-align: center;
	font-size: 18px;
	font-weight: normal;
	margin: 10px 0 0 0;
}
h6 {
	max-width: 640px;
	text-align: left;
	font-size: 18px;
	font-weight: normal;
	margin: 10px auto 0 auto;
}
#contents #main pre {
	max-width: 600px;
	max-height: 250px;
	overflow-y: auto;
	color: #111;
	background: transparent;
	border: 2px solid #9fb7d4;
	word-wrap: break-word;
	white-space: -moz-pre-wrap;
	white-space: -pre-wrap;
	white-space: -o-pre-wrap;
	white-space: pre-wrap;
	margin: 2px auto 15px auto;
	padding: 0 20px 30px 20px;
}
#contents #main pre code {
	font-size: 12px;
	font-weight: normal;

}
.ad_contents {
	width: 98%;
	max-width: 728px;
	text-align: center;
	margin: 10px auto;
}
.ad_horizontal {
	width: 98%;
	max-width: 728px;
	text-align: center;
	margin: 10px auto 20px auto;
}
article section p {
	padding: 10px 10px 200px 10px;
	text-align: center;
}
.backbtn {
	width: 160px;
	border: 1px solid #1f527c;
	text-align: center;
	margin: 20px auto;
	color: #1f527c;
	border-radius: 5px;
	font-size: 14px;
}
.backbtn a,
.backbtn a:link,
.backbtn a:visited,
.backbtn a {
	color: #1f527c;
	display: block;
	padding: 10px 5px;
}
.backbtn a:hover {
	color: #ccc;
	background: #1f527c;
}
#counter {
	text-align: center;
	padding: 5px 10px 10px 10px;
}
#copyright {
	margin: 20px 0 40px 0;
	text-align: center;
	font-size: 14px;
}
/*--sample----------------------------------------------------------*/
/* 0 to 768px */
body {
	-webkit-text-size-adjust: 100%;
}
header {
	overflow: hidden;
	border-bottom: 2px solid #9fb7d4;
}
	header h2 {
		margin: 0 auto;
		padding: 10px;
	}
#contents nav {
	overflow: hidden;
	background: #ddd;
}
	#contents nav ul {
		padding: 10px;
		list-style: none;
		overflow: hidden;
	}
	#contents nav ul li {
		float: left;
		margin-right: 10px;
	}
#contents #main {
	overflow: hidden;
	background: #eee;
}
	#contents #main article {
		overflow: hidden;
		padding: 10px;
	}
#contents aside {
	overflow: hidden;
	background: #ccc;
}
	#contents aside p {
		padding: 10px;
	}
footer {
	overflow: hidden;
	border-top: 2px solid #9fb7d4;
}
/* ** */
@media only screen and (min-width: 769px) {
header {
	min-width: 1060px;
	overflow: hidden;
	border-bottom: 2px solid #9fb7d4;
}
#contents {
	overflow: hidden;
	width: 1060px;
	margin: 0 auto;
}
#contents nav {
	float: left;
	width: 200px;
	margin: 0 auto;
	overflow: hidden;
	background: #ddd;
}
	#contents nav ul {
		padding: 10px;
		list-style: none;
		overflow: hidden;
	}
	#contents nav ul li {
		float: none;
		margin-right: 0;
	}
#contents #main {
	float: left;
	width: 660px;
	overflow: hidden;
	background: #eee;
}
	#contents #main article {
		overflow: hidden;
		padding: 10px;
	}
#contents aside {
	float: left;
	width: 200px;
	overflow: hidden;
	background: #ccc;
}
	#contents aside p {
		padding: 10px;
	}
footer {
	min-width: 1060px;
	overflow: hidden;
	border-top: 2px solid #9fb7d4;
}
/* ** */}
Back to the previous page