/ Published in: CSS
Code between the /**********CSS************/ comments goes in a style sheet.
Code between the /******InsertInBody*******/ comments is inserted between the
Code between the /******InsertInBody*******/ comments is inserted between the
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/**********CSS************/ body { background-color:#000000; margin: 0px; padding: 10px; } #container { margin: 0 auto; /* align for good browsers */ text-align: left; /* counter the body center */ width: 800px; /*height:auto;*/ } #mainMenu { position:relative; background-color:#CCCCCC; width:800px; height:600px; top:auto; left:auto; height:100px; } #redbox { position:absolute; width:320px; height:240px; background-color:#FF0000; } /**********CSS************/ /******InsertInBody*******/ <div id="container"> <div id="mainMenu"> <div id="redbox"> </div> </div> </div> /******InsertInBody*******/