<!DOCTYPE HTML>
<html lang="en">
<head>
<title>Design Layout Sederhana HTML5</title>
<link rel="stylesheet" href="design.css" type="text/css" />
</head>
<body>
<header>
header
</header>
<nav>
nav
<button>Home</button>
<button>Article</button>
<button>Download</button>
<button>About Us</button>
</nav>
<section>
<article>-article-
</article>
<aside>
<button >L O G I N</button>
<br>
-aside-
</aside>
section
</section>
<footer>
footer
</footer>
</body>
</html>
Script CSS
body{
margin : 10px auto;
width : 900px;
border : 1px solid green ;
}
header, nav, section, article, aside, footer{
display : block;
}
header{
padding-top: 30px;
height: 50px;
border : 1px solid green;
}
nav{
padding-top: 7px;
width: 900px;
height: 30px;
border : 1px solid blue;
}
section{
width : 900px;
height : 450px;
border : 1px solid red;
}
article{
padding-top: 5px;
float: left;
margin : 20px;
width: 700px;
height: 385px;
border: 1px dashed red;
}
aside{
padding-top: 5px;
margin : 20px;
margin-left: 725px;
width: 150px;
height: 385px;
border: 1px dashed black;
}
button{
font-family : calibri;
color : blue;
height :30px;
}
footer{
clear : both;
height : 30px;
}
Hasil:
Tidak ada komentar:
Posting Komentar