Positioning a div inside another div
-
Okay, My div layers are working properly but when I want to position a div inside another div, its not working or moving at all. Can anyone tell me where my coding went wrong? Thanks!
/* --------------- Div ID's --------------- */ /* ----- HEADER ----- */ #header { width:741px; height:224px; background-image:url(); border:solid 0px #000; } /* FAUX LAYOUT WRAPPER */ #wrapper{ width:741px; background:url(); overflow:auto; /* USE FIREFOX GUYS! WE ONLY NEED THIS LINE BECAUSE INTERNET EXPLODER ISN'T READING CODE PROPERLY */ margin-top:0px; position: relative; } /* ----- NAVIGATION ----- */ #sidebar { width:180px; min-height:500px; /* for modern browsers */ height:auto !important; /* for modern browsers */ height:500px; /* for IE5.x and IE6 */ background:transparent; border:solid 1px #000; float:right; } /* ----- MAIN CONTENT ----- */ #main { width:460px; min-height:500px; /* for modern browsers */ height:auto !important; /* for modern browsers */ height:500px; /* for IE5.x and IE6 */ background:transparent; border:solid 1px #000; margin-top:0px; position: absolute; top:0; right:30; } /* ----- FOOTER ----- */ #footer { width:741px; height:325px; background-image:url(); margin-top:0px; border:solid 0px #000; }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Positioning a div inside another div’ is closed to new replies.