www.pmo.itb.ac.id
Budi Hariyanto
L/O/G/O
Pengertian
Cascade Style Sheet (CSS) digunakan web
designer untuk mengatur Style elemen
yang ada di halaman website.
Melakukan pengaturan pada halaman
website
Mengontrol format tampilan sebuah web.
Struktur
Selector { properties:value ; }
Contoh : h1{color:red ; }
Perbedaan Class & ID
Contoh : #namaID {
background:blue;
width : 900px;
height : 210px;
}
Type css
Atau
.nama class {
Color:red;
}
Font family
Contoh : h4{
Font-family: calibri;
}
Font Style
Contoh : p {
Font-style:italic;
}
Font size
Contoh :
P{
Font-size:20px;
}
Warna teks
Contoh :
P{
Color: red;
}
Jarak teks
Contoh :
P{
Word-spacing:20px;
Letter-spacing:20px;
}
jenis perataan teks
Contoh :
P{
text-align:center;
text-align:right;
text-align:justify;
}
Membuat layouts
<html>
<head>
<title>layouts dasar
</title>
</head>
<body>
<div id=“header”>welcome to my web</div>
<div id=“navigasi”>
<ul>
<li><a href=“”>a</a></li>
<li><a href=“”>b</a></li>
<li><a href=“”>c</a></li>
<li><a href=“”>d</a></li>
</ul>
</div>
<div id=“isi”>
<p>isi halaman web</p>
</div>
<div id=“footer”>copyright 2015
</div>
</body>
</html>
Next
Membuat halaman sederhana sistem informasi
instansi masing-masing !!!
Hatur Nuhun
www.pmo.itb.ac.id
L/O/G/O