2020년 10월 10일 토요일

html div test

 <!DOCTYPE html>

<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body{margin0pxwidth100%;font-size16px;font-familyVerdana, Geneva, Tahomasans-serif;color#333333;}
        .space{padding-left:10px;padding-top10px;}
        .top {background-coloraqua;height50px;displayflex;}        
        .top-menus {background-color:bisque;width200px;margin:auto 0px 0px auto;displayflex;}        
        .top-menu {background-color:blueviolet;width100%;padding-left:10px}        
        .main{displayflex;}
        .left {background-colorbluevioletwidth:20%;}
        .left-menus {background-colorburlywood;width:90%height:30pxmargin:20px auto auto auto ;}
        .left-menu{background-colorchocolateheight100%;}
        .center{background-colordarkolivegreen;width:70%;height:500px}
        .center-top{background-colordarksalmon;}
        .center-main{background-colordarkviolet;}
        .right{background-colorforestgreen;width:10%}
        .bottom{background-colorgray;height50px;}

    </style>
</head>
<body>
    <div class="all">
        <div class="top space">  
            <div style="border: 1px solid;">top</div>      
            <div class="top-menus ">
                <div class="top-menu">top1</div>
                <div class="top-menu">top2</div>
                <div class="top-menu">top3</div>
            </div>
        </div>
        <div class="main">
            <div class="left space">left
                <div class="left-menus">
                    <div class="left-menu">menu1</div>
                    <div class="left-menu">menu2</div>
                    <div class="left-menu">menu3</div>
                </div>
            </div>
            <div class="center space">center</div>
            <div class="right space">right</div>
        </div>
        <div class="bottom space">botoom</div>
    </div>
</body>
</html>

댓글 없음:

댓글 쓰기