CSS Layout(float, overflow) 실습
Web/CSS

CSS Layout(float, overflow) 실습

뉴비뉴 2019. 6. 13.
<header>TOP ALL Area (width:100% , height:100px)</header>
<div class="left">
  <ul><h2>Aside</h2>
    <li>english</li>
    <li>korea</li>
    <li>japen</li>
  </ul>
</div>
<div id="wrap">Lorem ipsum dolor sit amet consectetur adipisicing elit. Corrupti asperiores cupiditate eligendi aliquid repudiandae ad, ullam, quam dolorum quisquam rerum non cum molestias. Obcaecati neque animi ex quibusdam cupiditate sed. thank you :)</div>

<footer>copyright</footer>
header{
  text-align:center;
  width:100%;
  height:100px;
  background-color: green;
}
.left{
  text-align:center;
  width:30%;
  height:200px;
  background-color: #4c7;
  float:left;
}
h2{
  text-align:left;
}
li{
  margin-left:0px;
  text-align:left;
}
#wrap {
  background-color: red;
  text-align:center;
  width:70%;
  height:200px;
  overflow:auto;
  font-size:25px;
}
footer{
  background-color:green;
  width:100%;
  height:100px;
}

'Web > CSS' 카테고리의 다른 글

[css] 미디어 쿼리, @media, 조건문?  (0) 2019.01.31
[css] 그리드(grid), div, span  (0) 2019.01.29
[css] 박스 모델, 중복의 제거, display:inline, block  (0) 2019.01.29
[css] HTML 과 CSS 구분  (0) 2019.01.23
[css] 서브메뉴 만들기  (0) 2019.01.23

댓글

💲 추천 글