ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • 페스티벌 홍보 도면 구현
    HTML & CSS 2020. 4. 15. 00:21
    <!DOCTYPE html>
    <html>
    <head>
      <title>Summer Music Festival</title>
      <meta charset="utf-8">
      <link rel="stylesheet" href="css/styles.css">
      <link href="https://fonts.googleapis.com/earlyaccess/notosanskr.css" rel="stylesheet">
    </head>
    <body>
      <div class="hero-header">
        <div id="navbar">
          <a href="#" id="logo">SMF</a>
        </div>
    
        <div class="helper"></div><div class="info">
          <h1>10th Summer Music Festival</h1>
          <h2>20 - 21 August, 2017</h2>
    
          <a href="#" class="learn-more">Learn More</a>
        </div>
      </div>
    </body>
    </html>
    body {
      margin: 0;
      font-family: 'Noto Sans KR', sans-serif;
    }
    
    .hero-header {
      position: relative;
      height: 684px;
       /*사진 암거나 해도 됨 ㅇㅇ*/
      background-image: url('../images/hero_image.jpg');
      background-size: cover;
    }
    
    /* 세로 가운데 정렬을 위해서 */
    .hero-header .helper {
      display: inline-block;
      height: 100%;
      vertical-align: middle;
    }
    
    #navbar {
      padding: 10px 20px;
      position: absolute;
      top: 0;
    }
    
    #logo {
      color: white;
      font-size: 28px;
      text-decoration: none;
      font-weight: bold;
    }
    
    .info {
      color: white;
      text-align: center;
      display: inline-block;
      width: 100%;
      vertical-align: middle;
    }
    
    .info h1 {
      margin-top: 0;
      margin-bottom: 10px;
      font-size: 40px;
    }
    
    .info h2 {
      margin-top: 0;
      margin-bottom: 50px;
      font-size: 20px;
      font-weight: normal;
    }
    
    .learn-more {
      padding: 8px 40px;
      font-size: 18px;
      color: white;
      border: 2px solid white;
      text-decoration: none;
    }
    

    'HTML & CSS' 카테고리의 다른 글

    이미지 버튼 링크 만들기  (0) 2020.04.15
    CSS 최적화 (길이 줄이기)  (0) 2020.04.15
    누구나 할 수 있는 간단한 로그인 화면  (0) 2020.04.14
    screen 구현 6  (0) 2020.04.13
    screen 구현 5  (0) 2020.04.12
Designed by Tistory.