220914 layout

2022. 9. 14. 10:03·Skills/CSS3, SCSS
<!DOCTYPE html>
<html lang="ko">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>layout</title>
  <style>
    * {margin: 0; padding: 0;}
    a {color: black; text-decoration: none;}
    li {list-style: none;}

    /*-------- header --------*/
    .header {
      width: 1024px; height: 200px;
      background-color: #ccc;
      margin: 0 auto;
    }

    /*-------- wrap --------*/
    .wrap {
      width: 1024px;
      margin: 0 auto;
      /* wrap으로 묶어서 대표로 가운데 정렬함. */
    }

    .wrap .visual_main {
      height: 300px;
      /* 홈페이지는 width 일정하게 설정함.
      부모가 width: 1024px이므로 자식은 100%임. 100%는 생략가능. */
      background-color: #aaa;
    }
   
    .wrap .event {
      height: 200px;
      background-color: #bbb;
      margin: 50px 0;
    }

    .wrap .product {
      height: 400px;
      background-color: #ddd;
    }

    /*-------- footer --------*/
    .footer {
      width: 1024px; height: 200px;
      background-color: #ccc;
      margin: 0 auto;
    }
  </style>
</head>
<body>
  <header class="header">
    <h1>header</h1>
  </header><!--header-->

  <div class="wrap">
    <section class="visual_main">
      visual_main
    </section>

    <section class="event">
      event
    </section>

    <section class="product">
      product
    </section>
  </div><!--wrap-->

  <footer class="footer">
    <h1>footer</h1>
  </footer><!--footer-->
</body>
</html>

'Skills > CSS3, SCSS' 카테고리의 다른 글

220916 layout_test_02  (0) 2022.09.15
220914 layout_test_01  (0) 2022.09.14
220913 contents.html  (0) 2022.09.13
menu_horizontal  (0) 2022.09.13
220908 hambtn/topbtn/wingbanner.html  (0) 2022.09.08
'Skills/CSS3, SCSS' 카테고리의 다른 글
  • 220916 layout_test_02
  • 220914 layout_test_01
  • 220913 contents.html
  • menu_horizontal
개발자 윤구나
개발자 윤구나
개발 공부를 하고 있습니다. Let's go!
  • 개발자 윤구나
    이것은 무엇?????
    개발자 윤구나
    • 분류 전체보기
      • Skills
        • Java
        • Database
        • Flutter, Dart
        • JavaScript
        • React
        • HTML5
        • CSS3, SCSS
        • PHP
        • C#
        • Unity
        • Algorithm
        • GIT·GitHub
        • 그 외
      • Book Review
      • IT NEWS
      • 설계
      • 자기 계발
  • 블로그 메뉴

    • 홈
    • 방명록
  • 인기 글

  • 최근 글

  • 최근 댓글

  • 전체
    오늘
    어제
  • hELLO· Designed By정상우.v4.10.3
개발자 윤구나
220914 layout
상단으로

티스토리툴바