Minggu, 27 Februari 2011

Studi Kasus Modul4


This is it source code nya...
silahkan mencoba

ini file cssnya dengan nama desain.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;
}

Sedangkan ini file htmlnya :


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

<head>
<title>Desain Layout Sederhana HTML5</title>
<link rel="stylesheet" href="desain.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>

Tidak ada komentar:

Posting Komentar