Membuat Halaman Web dengan Menggunakan CSS

Minggu, 13 Maret 2011

Ini merupakan contoh dari halaman web yang dibuat dengan menggunakan CSS :


Berikut adalah script yang saya gunakan dalam membuat halaman web tersebut diatas :
<!DOCTYPE html>
<html lang="en">
<head>
<title>FACE-FvCK</title>
<!-- AMALIA ISTIQOMAH / 109533427363 -->
<style type="text/css">

.header, .footer{
background-color : gray;
}

.header{
height : 90px;
padding-top : 10px;
padding-bottom : 10px;
padding-left : 150px;
}

#lebar{
width : 1000px;
}

.footer{
padding-top : 5px;
padding-bottom : 5px;
padding-right : 200px;
padding-left : 30px;
color : white;
font-family : Arial;
font-size : small;
font-weight : bold;
}

.bg-color{
height : 470px;
background-image : url(bg.jpg);
background-color : black;
background-repeat : repeat-x;
}

.login{
float : right;
color : white;
font-family : arial;
font-size : small;
}

#logo{
margin-top : 5px;
float : left;
height : 35px;
}

#kanan{
float: left;
padding: 5px;
width:370px;
height: 380px;
}

#tengah {
float: left;
}

#kiri {
float: left;
width: 780px;
height: 380px;
}

#gambar{
padding-top : 30px;
padding-bottom : 10px;
padding-left : 100px;
width: 400px;
height: 200px;
font-family : Arial;
font-size : small;
font-weight : bold;
color: gray;
}

#huruf{
font-family : Arial;
font-size : small;
font-weight : bold;
line-height : 45px;
color: gray;
}

#button_masuk{
background-color : gray;
color : black;
}

#button_daftar{
background-color : gray;
color : black;
}

</style>
<link type="image/x-icon" rel="icon" href="icon.png">
</head>
<body>
<div class="header">
<div id="lebar">
<div id="logo">
<img src="facefvck 3.jpg" height="80">
</div>
<div class="login">
<table>
<tr>
<td>Email</td>
<td>Password</td>
<td> </td>
</tr>
<tr>
<td><input type="text"></td>
<td><input type="password"></td>
<td><input type="submit" value="Masuk" id="button_masuk"></td>
</tr>
<tr>
<td height="25"><input type="checkbox" checked>Ingat saya</td>
<td height="25">Lupa kata sandi?</td>
<td height="25"> </td>
</tr>
</table>
</div>
</div>
</div>
<div class="bg-color">

<form action="my_action.jsp">
<div id="tengah">
<div id="kiri">
<div id="gambar">
<font size="4">FACE-FvCK tugas praktikum modul 3</font>
<img src="b.jpg">
</div>
</div>
</div>
</form>
<div id="kanan">
<div id="huruf">
<h2>Dapatkan Akun FACE-FvCK free..!! </h2>
<hr style="color: blue">
<form action="my_action.jsp">
<table>
<tr>
<td>Nama Depan :</td>
<td><input type="text" size="35"></td>
</tr>
<tr>
<td>Nama Belakang :</td>
<td><input type="text" size="35"></td>
</tr>
<tr>
<td>Email Anda :</td>
<td><input type="text" size="35"></td>
</tr>
<tr>
<td>Kata Sandi Baru:</td>
<td><input type="password" size="35"></td>
</tr>
<tr>
<td>Ulangi Kata Sandi:</td>
<td><input type="password" size="35"></td>
</tr>
<tr>
<td>Jenis Kelamin :</td>
<td><select name="kelamin">
<option value="pria" selected>Perempuan
<option value="wanita">Laki-Laki
</select></td>
</tr>
</table>
</form>
<input type="submit" value="Daftarkan Sekarang" id="button_daftar">
</div>
</div>
</div>
<div class="footer">
Created by amaLameLia.anGeLsWings
</div>
</body>
</html>

0 komentar:

Posting Komentar