Contenu connexe
Similaire à 4주 CSS Layout (13)
4주 CSS Layout
- 21. * {!
! background-color: #e5e5e5!
}
body에만
- 26. !
#gnb ul:nth-child(1) li a{
순서가
- 42. header #a1 form{!
! position: relative;!
! display: inline;!
! left: 50px;!
}
#a1
- 46. ul {!
! list-style: none;!
}
공통
- 76. footer {!
font-size : 16px;!
}!
!
footer div {!
font-size : 32px;!
}
footer {!
font-size : 32px;!
}!
!
footer div {!
font-size : 2em;!
}
- 88. #a {!
width : 100px;!
}!
!
#b {!
width : 100px;!
}!
!
#c {!
width : 100px;!
}
중복코드
- 90. #a,#b,#c {!
width : 100px;!
}!
!
#a,#c,#d {!
height : 300px;!
}!
!
#a,#e {!
background-color : red;!
}!
!
….
- 91. #a,#b,#c {!
width : 100px;!
}!
!
#a,#c,#d {!
height : 300px;!
}!
!
#a,#e {!
background-color : red;!
}!
!
….
#WIDTH_100,!
#a,#b,#c {!
width : 100px;!
}!
!
#BOX_HEIGHT,!
a,#c,#d {!
height : 300px;!
}!
!
#BGCOLOR_RED,!
a,#e {!
background-color : red;!
}!
!
….
- 210.
출처 :
http://coding.smashingmagazine.com/2009/10/19/the-mystery-of-css-float-property/
- 347. z-index
Image : http://www.smashingmagazine.com/2009/09/15/the-z-index-css-property-a-comprehensive-look/
- 379. div id=top/div
div id=middle/div
div id=bottom/div
div {
width : 100px;
height : 100px;
position: absolute;
}
!
#top {
background-color : gold;
top : 10px;
left : 10px;
}
!
#middle {
background-color : silver;
top : 30px;
left : 30px;
}
!
#bottom {
background-color : coral;
top : 50px;
left : 50px;
}
- 380. div id=top/div
div id=middle/div
div id=bottom/div
div {
width : 100px;
height : 100px;
position: absolute;
}
!
#top {
background-color : gold;
top : 10px;
left : 10px;
z-index : 0;
}
!
#middle {
background-color : silver;
top : 30px;
left : 30px;
z-index : 0;
}
!
#bottom {
background-color : coral;
top : 50px;
left : 50px;
z-index : 0;
}
- 381. div id=top/div
div id=middle/div
div id=bottom/div
div {
width : 100px;
height : 100px;
position: absolute;
}
!
#top {
background-color : gold;
top : 10px;
left : 10px;
z-index : 1;
}
!
#middle {
background-color : silver;
top : 30px;
left : 30px;
z-index : 0;
}
!
#bottom {
background-color : coral;
top : 50px;
left : 50px;
z-index : -1;
}
- 382. z-index 값이 순서대로 1,2,3,4 인경우
3
1 2
4
div
1
div3/div
div4/div
/div
!
div
2
/div