Sabtu, 26 Februari 2011
MODUL 4 - STUDI KASUS
Source Code :
a. CSS
body {
margin: 10px auto;
width: 750px;
}
header,nav,section,footer{
display:block;
border:1px solid blue;
}
header{
height:80px;
}
nav{
padding : 5px;
height:30px;
}
section{
height:500px;
}
article,aside{
display:block;
border:1px dashed blue;
}
article{
float:left;
margin-top:20px;
margin-right: 20x;
margin-left: 20px;
width: 400px;
height:450px;
}
aside{
float:left;
margin-top:20px;
margin-right:20x;
margin-left:40px;
width: 250px;
height:450px;
border:1 px solid black;
}
footer{
clear:both;
height:20px;
}
button{
margin-left:10px;
outline-width: 0;
border: 1px solid #000;
border-radius: 50px;
-moz-border-radius: 50px;
background-color : blue;
color : black;
}
B. HTML
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>Desain Layout Sederhana HTML5</title>
<link rel="stylesheet" href="mystyle.css" type="text/css" />
</head>
<body>
<header>
header
</header>
<nav>
<button style="font: bold 14px verdana">Home</button>
<button style="font: bold 14px verdana">Profil</button>
<button style="font: bold 14px verdana">Info</button>
<button style="font: bold 14px verdana">Image</button>
</nav>
<section>
<article>
article
</article>
<aside>
aside
</aside>
</section>
<footer>
footer
</footer>
</body>
</html>
Langganan:
Posting Komentar (Atom)
Tidak ada komentar:
Posting Komentar