Senin, 28 Februari 2011
STUDI KASUS MODUL 4
SINTAKS CSS nya :
@charset "utf-8";
/* CSS Document */
body{
margin: 10px auto;
width:752px;
}
header,nav,section,footer{
display:block;
border:1px solid blue;
}
header{
height:80px;
}
nav{
height:30px;
}
ul{
margin: 0;
padding: 0;
list-style: none;
}
ul li {
position:relative;
float:left;
width: 100px;
}
li ul{
position: absolute;
top: 30px;
display: none;
}
ul li{
display: block;
text-decoration: none;
line-height: 20px;
color: #000;
padding: 5px;
background-color:red;
margin: 0 2px;
}
ul li a:haver {background: #66F;}
li:hover ul,li.over ul {display:block;}
section{
height:370px;
}
#article{
float:left;
margin: 10px;
width: 200px;
height: 300px;
border:1px dashed green;
}
#arside{
float:right;
margin: 10px;
width: 500px;
height: 300px;
border:1px dashed green;
}
footer{
clear:both;
height:20px;
}
SINTAKS HTML NYA :
<!DOCTYPE html>
<html lang="en">
<head>
<title> STUDI KASUS MODUL 4</title>
<link rel="stylesheet" href="yourstyle.css" type="text/css" />
</head>
<body>
<div id="wrapper">
<div id="header">
HEADER
</div>
<div id="nav">
NAV
</div>
<div id="inner">
<div id="sidebar">
ARTICLE
</div>
<div id="content">
ASIDE
</div>
SECTION
</div>
<div id="footer">
FOOTER
</div>
</div>
</body>
</html>
Langganan:
Posting Komentar (Atom)
0 komentar:
Posting Komentar