Skip to content

Instantly share code, notes, and snippets.

@tka
Created June 4, 2011 12:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tka/1007852 to your computer and use it in GitHub Desktop.
Save tka/1007852 to your computer and use it in GitHub Desktop.
<!doctype html>
<html>
<head>
<style>
<!--
body {
text-align: center;
}
#doc {
margin: 0 auto;
text-align: left;
width: 974px;
position: relative;
}
#block-a {
border: 3px solid red;
float: left;
height: 200px;
width: 720px;
}
#block-b {
border: 3px solid green;
float: left;
height: 600px;
width: 720px;
}
#block-c {
border: 3px solid blue;
height: 400px;
width: 200px;
position: absolute;
right:0;
}
-->
</style>
</head>
<body>
<div id="doc">
<div id="block-a">Block A</div>
<div id="block-b">Block B</div>
<div id="block-c">Block C</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment