We would like to know how to create sidebar on the right.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
div {<!-- w w w. j a v a 2 s . co m-->
height: 100%;
}
#bigBox {
height: 300px;
border: 1px solid;
}
#boxI {
background: green;
float: left;
}
#boxII {
float: left;
background: yellow;
border-left: 1px solid;
margin-left: -1px;
}
</style>
</head>
<body>
<head>
<style>
.contentbox {
border-top: 1px solid;
margin-top: -1px;
}
</style>
</head>
<body>
<div id='bigBox'>
<div id='boxI' style='width: 75%'>
<div id='boxIA' style='height: 33%'>some content</div>
<div id='boxIB' class='contentbox' style='height: 33%'>some content</div>
<div id='boxIC' class='contentbox' style='height: 33%'>some content</div>
</div>
<div id='boxII' style='width: 25%'></div>
</div>
</body>
</body>
</html>
The code above is rendered as follows: