Skip to content

Instantly share code, notes, and snippets.

@porcelli
Created August 16, 2012 12:36
Show Gist options
  • Save porcelli/3369842 to your computer and use it in GitHub Desktop.
Save porcelli/3369842 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<style type="text/css">
body {
margin: 0px;
padding: 0px;
}
.container {
width: 100%;
height: 300px;
background-color: blue;
}
.c1 {
position: absolute;
background-color: yellow;
width: 200px;
height: 200px;
}
.c2 {
float: left;
background-color: green;
width: 50%;
height: 200px;
}
.c3 {
float: left;
background-color: purple;
width: 50%;
height: 200px;
}
.c4 {
position: absolute;
top: 0;
right: 0;
background-color: black;
width: 200px;
height: 200px;
}
.middle {
margin: 0 200px;
height: 250px;
background-color: gray;
}
</style>
</head>
<body>
<div class="container">
<div class="c1"></div>
<div class="middle">
<div class="c2"></div>
<div class="c3"></div>
<div class="c4"></div>
</div>
<div class="c5"></div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment