Baca Juga : Cara membuat tombol menjadi menarik dengan css
Cara membuat tabel menjadi menarik
Layout website terdiri dari empat kerangka web yaitu :
- Header
- Kepala website, tempat logo website, dan lain sebagainya.
- Body
- Merupakan isi dari sebuah website, bisa berupa isi postingan, dan lain sebagainya.
- Footer
- Tempat untuk menulis hak cipta pada sebuah website.
- Sidebar
- Tempat untuk menaruh menu, konten, dan lain sebagainya
<html>
<head>
<title>Belajar Membuat Layout</title>
</head>
<body>
<div class="header">
<h2>Biongo Attacker</h2>
</div>
<div class="sidebar">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Fanspage</a></li>
<li><a href="#">Blog</a></li>
</ul>
</div>
<div class="body">
<h3>Judul Postingan</h3>
<p><b>Isi konten di bawah ini</b></p>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.</p>
</div>
<div class="footer">
<p>Copyright © 2016 Biongo Attacker</p>
</div>
</body>
</html>
*{
margin: 0;
padding: 0;
}
/*Style untuk header*/
.header{
color: #09a5ff;
background-color: #ccccff;
width: 100%;
height: 70px;
line-height: 60px;
font-family: arial;
}
/*Style untuk sidebar*/
.sidebar{
float: right;
padding: 10px;
background-color: #ccccff;
width: 100px;
height: 83%;
font-family: arial;
text-align: center;
line-height: 50px;
}
a{
text-decoration: none;
color: black;
}
a:hover{
color: #ff62a1;
}
li{
list-style: none;
}
/*Style untuk body*/
.body{
padding-top: 30px;
font-family: arial;
margin-left: 10px;
}
p{
padding-top: 5px;
text-shadow: 1px 2px 5px #67f0db;
}
/*Style untuk footer*/
.footer{
background-color:#ccccff;
clear:both;
padding-top:2px;
font-family: verdana;
width: 100%;
height: 50px;
line-height: 45px;
text-align: center;
}
Pada kode di atas, saya menggunakan teknik internal untuk menggabungkan css dengan html.Kode di atas juga bisa anda edit-edit sedikit agar terlihat lebih menarik.Dan untuk hasil-nya bisa lihat pada gambar di bawah ini.
Oke sampai disini dulu, semoga bermanfaat buat yang baca artikel ini.
Jika ada yang mau ditanyakan silahkan berkomentar dibawah.
2 komentar
Keren gan sangat membantu
Delete Replythanks gan, mudah-mudahan tidak bosan untuk berkunjung di blog ini :D
Delete ReplyMohon untuk para pengunjung agar supaya meninggalkan komentar setelah membaca.Komentar anda sangat bermanfaat bagi kemajuan blog ini.
"Janganlah menjadi seorang pembaca yang pendiam tanpa meninggalkan jejak sedikit pun"