-SOURCE CODE KASUS.CSS
body {
margin: 10px auto;
width: 750px;
}
header,nav,section,article,aside,footer {
display:block;
}
header{
border: 1px solid green;
height:80px;
text-align:center;
}
nav{
padding: 5px 5px 0px 5px;
border:1px solid blue;
height:40px;
}
button{
height:35px;
width:140px;
border:1px solid green;
}
input{
height:20px;
width:157px;
border:1px solid green;
}
section{
border:1px solid red;
height:400px;
}
article{
float:left;
margin-top: 25px;
margin-left:25px;
width:70%;
height:88%;
border: 1px dashed red;
text-align:center;
}
aside{
float:right;
margin-top: 25px;
margin-right:25px;
margin-left:25px;
height:88%;
width: 19%;
border: 1px dashed red;
text-align:center;
}
footer{
clear:both;
height:20px;
border:1px solid green;
}
- SOURCE CODE KASUS.HTML
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>Desain Layout Sederhana HTML5</title>
<link rel="stylesheet" href="kasus.css" type="text/css" />
</head>
<body>
<header>
header
</header>
<nav>
<button> Home </button>
<button> Article </button>
<button> Download </button>
<button> About Us </button>
<input> </input>
</nav>
<section>
<article>
article
</article>
<aside>
<button> Login </button>
aside
</aside>
section
</section>
<footer>
footer
</footer>
</body>
</html>
- SCREEN SHOT



