INI ADALAH CSS:
body{
margin: 10px auto;
width:752px;
}
header,nav,section,footer{
display:block;
border:1px solid red;
}
header{
height:80px;
}
logo{
float: left;
padding-left: 750px;
padding-top: 80px;
border:1px dashed blue;
}
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:#FFCC00;
padding: 5px;
background:#FFFF00;
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 blue;
}
#arside{
float:right;
margin: 10px;
width: 500px;
height: 300px;
border:1px dashed blue;
}
footer{
clear:both;
height:20px;
}
INI ADALAH HTML
<html>
<head>
<title>Desain layout sederhana HTML5</title>
<link rel="stylesheet" href="studikasus.css" type="text/css" />
</head>
<body>
<header>
<logo>
</logo>
</header>
<nav>
<ul id="nav">
<li><a href="">Home</a></li>
<li><a href="">Profile</a>
<ul>
<li><a href="">web design</a></li>
<li><a href="">Program</a></li>
</ul>
</li>
<li><a href="">contact</a>
<ul>
<li><a href="">Home</a></li>
<li><a href="">mobile</a></li>
</ul>
</li>
<li><a href="">Galeri</a>
<ul>
<li><a href="">Program</a></li>
<li><a href="">Web</a></li>
<li><a href="">Multimedia</a></li>
</ul>
</li>
</ul>
</nav>
<section>
<div id="article">
<div>articleee
</div>
</div>
<div id="arside">
arside
</div>
<p>section
</p>
</section>
<footer>
footer
</footer>
</body>
</html>
Tidak ada komentar:
Posting Komentar