커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
1-10 데일리모토 만들기
[GPT] 웹개발 종합반 v0
1주차
북마크
댓글
4
추천
0
조회수
11
조회수
11
답변 완료

* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.

* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.


16:17 부분

.logo {
        margin-left: 30px;
        height: 32px;
      }

이 부분을 코드로 짜면 왜 스파르타 그림이 줄어드나요?

<!DOCTYPE html>
<html lang="en">
  <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>Document</title>
    <style>
      body {
        background-image: url("https://s3.ap-northeast-2.amazonaws.com/materials.spartacodingclub.kr/webjong/images/background.jpg");
        background-position: center;
        background-size: cover;
        color: white;
      }
      .navbar {
        display: flex;
        justify-content: space-between;
      }


      .weather {
        display: flex;
        align-items: center;
        margin-right: 30px;
      }


      .container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100vh;
        text-align: center;
      }


      .footer {
        position: fixed;
        left: 0;
        bottom: 0;
        width: 100%;
        text-align: center;


        font-weight: bold;
        padding: 20px 0;
      }


      .greeting {
        margin-bottom: 50px;
      }


      .motto {
        margin-bottom: 50px;
      }


      .motto {
        margin-bottom: 100px;
      }


      .logo {
        margin-left: 30px;
        height: 32px;
      }
    </style>
  </head>
  <body>
    <nav class="navbar">
      <img
        class="logo"
        src="https://s3.ap-northeast-2.amazonaws.com/materials.spartacodingclub.kr/webjong/images/sparta-logo.svg"
        alt=""
      />
      <div class="weather">
        <img
          src="https://ssl.gstatic.com/onebox/weather/64/partly_cloudy.png"
          id="weather-icon"
        />
        <p>날씨 맑음, 20ºC</p>
      </div>
    </nav>
    <!-- main -->
    <div class="container">
      <div class="greeting">
        <h1>Hello, My name!</h1>
        <h1>12:30</h1>
      </div>


      <div class="motto">
        <h3>My life's motto</h3>
        <h2>웃으면 행복해집니다.</h2>
      </div>
    </div>


    <!-- footer -->
    <div class="footer">
      <p>- 작자 미상 -</p>
      <p>멋진 명언입니다. 아이스크림을 먹으면 행복해져요.</p>
    </div>
  </body>
</html>










취소
 공유
취소
댓글 0
댓글 알림
나의얼굴