Skip to content

Instantly share code, notes, and snippets.

@burakcan
Forked from anonymous/jsbin.uwudit.css
Created July 9, 2013 11:24
Show Gist options
  • Save burakcan/5956630 to your computer and use it in GitHub Desktop.
Save burakcan/5956630 to your computer and use it in GitHub Desktop.
* {
box-sizing: border-box;
-moz-box-sizing: border-box;
}
.margin-center {
margin-left: auto;
margin-right: auto;
}
.radius {
border-radius: 5px;
}
.clear {
clear: both;
}
.container {
width: 970px;
background: #ccc;
padding: 5px;
}
header.main {
height: 100px;
background: red;
}
nav.main {
height: 40px;
line-height: 40px;
background: olive;
}
nav.main a {
display: block;
float: left;
text-decoration: none;
color: white;
width: 20%;
text-align: center;
background: olive;
-webkit-transition: all 300ms ease;
margin: 0 0 10px 0;
}
nav.main a~a {
border-left: 1px solid white;
}
nav.main a:hover {
background: yellow;
}
aside.main {
width: 350px;
height: 400px;
background: aqua;
float: right;
}
section.main {
width: 600px;
height: 400px;
background: white;
float: left;
}
footer.main {
height: 300px;
background: purple;
margin: 10px 0 0 0;
}
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="http://necolas.github.io/normalize.css/2.1.2/normalize.css">
<title>Merhaba Dünya!</title>
</head>
<body>
<div class="container margin-center">
<header class="main radius">
</header>
<nav class="main">
<a href="#">Anasayfa</a>
<a href="#">Hakkımızda</a>
<a href="#">Kurumsal</a>
<a href="#">Ürünler</a>
<a href="#">İletişim</a>
</nav>
<aside class="main"></aside>
<section class="main"></section>
<div class="clear"></div>
<footer class="main"></footer>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment