1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | body { margin : 0 ; padding : 0 ; border : 0 ; overflow : hidden ; height : 100% ; max-height : 100% ; } #framecontentLeft, #framecontentTop { position : absolute ; top : 0 ; left : 0 ; width : 200px ; /*Width of left frame div*/ height : 100% ; overflow : hidden ; /*Disable scrollbars. Set to "scroll" to enable*/ background-color : navy ; color : white ; } #framecontentTop { left : 200px ; /*Set left value to WidthOfLeftFrameDiv*/ right : 0px ; width : auto ; min-width : 800px ; height : 120px ; /*Height of top frame div*/ overflow : hidden ; /*Disable scrollbars. Set to "scroll" to enable*/ background-color : navy ; color : white ; } #maincontent { position : fixed ; left : 200px ; /*Set left value to WidthOfLeftFrameDiv*/ top : 120px ; /*Set top value to HeightOfTopFrameDiv*/ right : 0 ; bottom : 0 ; min-width : 600px ; overflow : auto ; background : #fff ; } .innertube { margin : 15px ; /*Margins for inner DIV inside each DIV (to provide padding)*/ } * html body { /*IE6 hack*/ padding : 120px 0 0 200px ; /*Set value to (HeightOfTopFrameDiv 0 0 WidthOfLeftFrameDiv)*/ } * html #maincontent { /*IE6 hack*/ height : 100% ; width : 100% ; } * html #framecontentTop { /*IE6 hack*/ width : 100% ; } div#HomeButton { margin : 0px ; padding : 0px ; border : 1px solid red ; width : 198px ; height : 118px ; font-size : 12pt ; color : White; } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | < form id = "form1" runat = "server" > < div id = "framecontentLeft" > < div id = "HomeButton" > 여기에는 HomeButton이 놓임. </ div > < div class = "innertube" > < h3 > Sub Menu가 놓이는 자리</ h3 > </ div > </ div > < div id = "framecontentTop" > < div class = "innertube" > < h1 > CSS Left and Top Frames Layout</ h1 > < h3 > Main Menu가 놓이는 자리</ h3 > </ div > </ div > < div id = "maincontent" > < div class = "innertube" > < asp:contentplaceholder id = "MainContent" runat = "server" ></ asp:contentplaceholder > </ div > </ div > </ form > |