본문 바로가기

Python_WEB/HTML

[부스트코스]고정 레이아웃 제작 퀴즈

반응형

Q>

<div class="wrap">
    <div class="header">header</div>
    <div class="container">
        <div class="content">content</div>
</div>
<div class="footer">footer</div></div>

위와 같은 HTML로  콘텐츠의 내용의 길이에 상관없이 header를 상단에 고정되는 레이아웃을 구성하려고 할 때 필수적인 css 구성 중에 맞는 것은?

 

  • .header {position: fixed; top: 0;}
  • .header {position: fixed; bottom: 0;}
  • .header {position: absolute; bottom: 0;}
  • .header {position: relative; top: 0;}
  • .header {position: fixed; top: 0; bottom:0;}

A>

.header {position: fixed; top: 0;}

 

www.boostcourse.org/web344

 

웹 UI 개발

부스트코스 무료 강의

www.boostcourse.org

 

반응형