본문 바로가기
IT/html+css

구조 나누기

by dya0 2019. 5. 7.




 
      
body {
	margin: 50px;
	font-family: monospace;
}

header {
	background-color: #D09E88;
	text-align: center;
	padding: 20px;
}

nav {
	background-color: #9B8281;
	text-align: right;
	list-style-type: none;
}

nav>ul {
	display: inline-block;
	list-style-type: none;
}
nav>ul>li>a{
	text-decoration: none;
}
nav>ul>li {
	float: right;
	padding-right: 20px;
}

article {
	float: left;
	height: 300px;
	background-color: #FADAD8;
	width: 70%;
}

aside {
	float: left;
	width: 30%;
	height: 300px;
	background-color: #534847;
	color: white;
}

footer {
	clear: both;
	text-align: center;
	background-color: #D09E88;
	padding: 20px;
}
 
 
header nav article aside footer

'IT > html+css' 카테고리의 다른 글

꿈들이 만들기  (0) 2019.05.07
display vs float  (0) 2019.05.07
HTML & CSS  (0) 2019.05.07