카테고리 없음

중간고사 준비3

애플쩀 2021. 10. 17. 07:49

새로 알게 된 것 

1. text-indent => 글자 들여쓰기 

예) text-indent: 3em;

 

2. float  

유동배치 => 항상 브라우저 왼쪽이나 오른쪽에 뜨게함 

 

3.clear: both

• float 속성 해제 - clear : left; - clear : right; - clear : both;

 

자꾸 footer이 옆에 나와서 ㅜ 해결방법을 몰랐는데 이것으로 해결할 수 있었다. 

 

4.

header #kangnam {
width: 200px; text-align: center;
}
header #shop {
width: 400px; text-align: center;
}
header #title {
font-size: 30px; color: blue; text-decoration: none;
}

일단 표 칸의 크기를 각각 200, 400 다르게 지정하고

칸 안에 있는  h1을 따로 title이라고 지정하여  글자 따로 설정 

즉 칸 따로 설정, 글자 따로 설정

 

 5.#left ul li  -> left에 ul에 li / #left를 따로 안써도 되지만 쓰는 게 이해하기 좋을 듯? 

 

6. iframe 이란 html 안에 html