Skip to content

Instantly share code, notes, and snippets.

@johanovic
Created March 27, 2012 15:50
Show Gist options
  • Save johanovic/2217330 to your computer and use it in GitHub Desktop.
Save johanovic/2217330 to your computer and use it in GitHub Desktop.
To test my positions
/**
* To test my positions
*/
div.main {
background: #ccc;
color: #ededed;
}
#blockleft {
background: black;
width: 33%;
float: left;
}
#blockmiddle {
width: 33%;
float: left;
background: blue;
position:relative;
}
#blockright {
width: 33%;
float: left;
background: pink;
}
div.header {
background:red
}
div.footer{
background: yellow;
}
<body>
<div class="header">
test. some more text.
</div>
<div class="main">
<div id="blockleft"> This is a left bound block</div>
<div id="blockmiddle"> This is a middle block </div>
<div id="blockright"> This is a block at the right </div>
test. some more text.
</div>
<div class="footer">
test. some more text.
</div>
</body>
{"view":"split-vertical","seethrough":"","prefixfree":"1","page":"result"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment