Website Tutorials
Recipes
Entertainment Reviews
Home Remedies
Game Codes and Cheats
CSS Coding Tutorials | Submited Nov 18, 2007
Notes
A pretty often asked question is how to put something 'anywhere'.Editing
Non-scrolling box
<style>
.noScroll{
position:absolute;
left:50%;
top:200px;
margin-left:-500px;
}
</style>
<div class="noScroll">
Z0mFg! A box!
</div>
Scrolling box
<style>
.autoScroll{
position:absolute;
left:50%;
top:200px;
margin-left:-500px;
overflow:auto;
height:150px;
width:150px;
}
</style>
<div class="autoScroll">
Z0mFg! A box!
</div>
Limited content
<style>
.hiddenContent{
position:absolute;
left:50%;
top:200px;
margin-left:-500px;
overflow:hidden;
height:100px;
width:100px;
}
</style>
<div class="hiddenContent">
Z0mFg! A box!
</div>