For this lab you will create two HTML5 pages a main and seco
Solution
<head>
<title>Responsive Layout</title>
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">
<link rel=\"stylesheet\" type=\"text/css\" href=\"reset.css\">
<link rel=\"stylesheet\" type=\"text/css\" href=\"style.css\">
</head>
<body>
<div id=\"container\">
<!-- header -->
<header id=\"header\">
<h1 id=\"title\">Responsive Layout</h1>
</header>
<!-- Navigation -->
<nav id=\"menu\" class=\"clearfix\">
<ul>
<li><a href=\"#\">Home</a></li>
<li><a href=\"#\">Portfolio</a></li>
<li><a href=\"#\">About</a></li>
<li><a href=\"#\">Contact</a></li>
</ul>
</nav>
<!-- Main Content area -->
<section id=\"content\">
<h2>Built with CSS3 and HTML5</h2>
<!-- Main content -->
</section>
<!-- Sidebar -->
<aside id=\"sidebar\">
<h3>This is the Sidebar</h3>
<!-- Sidebar content -->
</aside>
<!-- Footer -->
<footer id=\"footer\" class=\"clearfix\">
Copyright © Andor Nagy 2015
</footer>
</div>
</body>
</html>
css
.........
nav {
width: 97%;
background-color: #E64A19;
padding: 0 1.5% 0 1.5%;
}
nav ul li {
display: inline-block;
padding: 15px 1.5% 15px 1.5% ;
}
nav ul li a {
text-decoration: none;
color: #ffffff;
font-size: 1.2em;
}
nav ul li a:hover {
color: #000000;
text-decoration: none;
}
#content {
float: left;
padding: 3%;
width: 64%;
}
aside {
float: right;
padding: 3%;
width: 24%;
background-color: #eee;
}
footer{
width: 94%;
padding: 3%;
background-color: #FF5722;
border-top: 5px solid #E64A19;
color: #fff;
text-align: center;
}
@media all and (max-width : 768px) {
header {
text-align: center;
}
nav {
text-align: center;
}
#content {
width: 94%;
padding: 3%;
}
#sidebar {
width: 94%;
padding: 3%;
border-top: 3px solid #E64A19;
}
}
@media all and (max-width : 330px) {
nav ul li {
display:block;
width: 94%;
}
}

