meetup-html5-rwd-css3 html5
by jrummell
HTML
<div id="wrapper">
<header>
<hgroup>
<h1>Responsive Website</h1>
<h2>Welcome to my site</h2>
</hgroup>
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Store</a></li>
<li><a href="#">Blog</a></li>
<li><a href="#">Services</a></li>
<li><a href="#">Company</a></li>
<li><a href="#">Contact</a></li>
</ul>
<select id="menu">
<option value="#">Home</option>
<option value="#">About</option>
<option value="#">Store</option>
<option value="#">Blog</option>
<option value="#">Services</option>
<option value="#">Company</option>
<option value="#">Contact</option>
</select>
</nav>
</header>
<div id="content">
<div id="left_side">
<section>
<h1>Home</h1>
<div class="text"><p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard...
CSS
*{padding:0; margin:0;}
.clear{clear: both;}
img{
max-width: 100%;
}
body{
font-size: .9em;
font-family: arial;
background: #7db9e8; /* Old browsers */
background: -moz-linear-gradient(top, #7db9e8 0%, #f9f9f9 29%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#7db9e8), color-stop(29%,#f9f9f9)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #7db9e8 0%,#f9f9f9 29%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #7db9e8 0%,#f9f9f9 29%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #7db9e8 0%,#f9f9f9 29%); /* IE10+ */
background: linear-gradient(to bottom, #7db9e8 0%,#f9f9f9 29%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#7db9e8', endColorstr='#f9f9f9',GradientType=0 ); /* IE6-9 */
}
#wrapper{
width: 93.5%;
margin: 0 auto;
}
header{
width: 93.75%; /*960px*/
padding: 1.04%; /*10px / 960px */
}
nav{
width: 93.75%; /*900px / 960px */
background: #f9f9f9;
height: 50px;
/* CSS3 Border Radius */
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
/* CSS3 Box Shadow */
-moz-box-shadow: 4px 4px 5px #888;
-webkit-box-shadow: 4px 4px 5px #888;
box-shadow: 4px 4px 5px #888;
}
nav li{
list-style: none;
float: left;
margin: 1.25% 3.22%; /*12px / 960px && 30px / 960px */
text-shadow: 1px 1px 1px #000;
}
nav a{
text-decoration: none;
font-size: 1.375em; /*22px / 16px */
color: rgb(121, 111, 111);
text-align: center;
}
#menu{
display: none;
}
#left_side{
float: left;
width: 57.291%; /*550px / 960px*/
padding: 1.818%; /*10px / 550px Great example for padding*/
}
#left_side p{
margin: 1.785% 0; /*10px / 550px */
}
#right_side{
float: left;
width: 36.45%; /*350px / 960px */
padding: 2.857143% 0; /*10px / 350px...