CSS 8장

TO AC·2022년 3월 10일
0

CCS

목록 보기
7/20

INDEX

**

테이블

Website Title

Website slogan included here.

Main Column Heading

This is the main area (or column). Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex.

Item Name Quantity Price
Oranges 5 $3.00
Celery 2 $2.50
Garlic 2 $1.90
Bananas 6 $2.99
Onions 4 $3.00
Very long awkwardly named yet still delicious item here 4 $3.00
Carrots 12 $2.99

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. In reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

This is the sidebar. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu.

© 2021 - This is the footer.

STYLE html { background-color: #869960; } body { font-family: Tahoma, sans-serif; font-size: 87%; } img { max-width: 100%; height: auto; } .container { width: 940px; margin-left: auto; margin-right: auto; background-color: #fff; padding-left: 40px; padding-right: 40px; box-sizing: border-box; } header { padding-top: 20px; color: #617140; } header h1 { margin: 0; font-weight: normal; font-size: 165%; } header p { margin: 0; } /* Site Navigation */ .site-nav { margin-top: 20px; } .site-nav ul { margin: 0; padding: 0; } .site-nav li { list-style: none; float: left; margin-right: 5px; } .site-nav a { display: block; color: #617140; text-decoration: none; padding: 10px 20px; border: 3px solid #e5e9dc; border-bottom: none; } .site-nav a:hover { background-color: #e5e9dc; } /* End Site Navigation */ .content-area { border-top: 3px solid #e5e9dc; border-bottom: 3px solid #e5e9dc; } .main-area { width: 66%; float: left; padding-right: 40px; box-sizing: border-box; } .sidebar { width: 34%; float: left; background-color: #e5e9dc; padding: 20px 40px; box-sizing: border-box; font-size: 85%; } footer { text-align: center; font-size: 85%; color: #999; padding-bottom: 20px; padding-top: 20px; } .fix { clear: both; } .group:before, .group:after { content: ""; display: table; } .group:after { clear: both; } .group { zoom: 1; }

/ Table Styles /
table {
/ 보더 사이 간격 /
border-spacing: 0;
/ 보더라인 합침 /
border-collapse: collapse;
/ 테이블 길이 최대 /
width: 100%;
}

.col-item-name {
width: 60%;
}

.col-quantity,
.col-price {
width: 20%;
}

table th {
text-align: left;
background-color: #869960;
color: #fff;
text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4);
}

table th,
table td {
border: 1px solid #869960;
padding: 10px;
vertical-align: top;
}

table tbody tr:nth-child(even) td {
background-color: #e5e9dc;
}

table.grocery-list tr :nth-child(2),
table.grocery-list tr :nth-child(3) {
text-align: center;
}

table tbody tr:hover td {
background-color: #e6dce9;
}
**

profile
유망주

0개의 댓글