Selasa, 22 Februari 2011

StudiKasus Modul4

body {
margin: 10px auto;
width: 750px;
}

header{
border:1px solid green;
height: 80px;
background-image:url(bg.jpg);
}

nav {
border:1px solid blue;
height:20px;
}

section{
padding:15px;
border:1px solid red;
height:370px;
}

article{
float:left;
border:2px dashed red;
height:340px;
width:550px;}

aside{
float:right;
border:2px dashed black;
height:340px;
width:150px;
}

footer{
border:1px solid green;
height:20px;
}

kemudian dipanggil melalui HTML

<!DOCTYPE html>
<html lang="en">

<head>
<title>Desain Layout HTML5</title>
<link rel="stylesheet" href="StudiKasus.css" type="text/css"/>
<head>
<body>

<header>
header
</header>

<nav>
nav
</nav>

<section>

<article>
article
</article>

<aside>
aside
</aside>
section
</section>

<footer>
footer
</footer>

</body>
</html>

Tidak ada komentar:

Posting Komentar