Modul Css
Modul Css
Aturan penulisan :
Nilai untuk property tidak boleh dalam tanda petik.
contoh : color : green;
Nama property bersifat case sensitive.
color : green;
property : color
value : green
1
Inline Style sheet
Contoh Penggunaan :
<HTML>
<HEAD>
<TITLE>centranet</TITLE>
</HEAD>
<BODY style="color: white;
background: green;
font-family : arial;“ >
<H1>ZEFNET</H1>
<P>ZEFNET adalah sebuah web
Developer dan Linux Center
</BODY>
</HTML>
dimana :
selector : tag HTML yang akan didefinisikan (body, H1, Link , dll).
property : atribut yang akan diubah
Cara penulisan :
FONT-FAMILY : sans-serif;
FONT-SIZE : small;
2
BACKGROUND GAMBAR
Properties Value Keterangan
background- url Alamat gambar
image yang dituju
background- repeat Diulang dlm hal
repeat repeat-x Diulang sumbu x
repeat-y Diulang sumbu y
no-repeat Tampil 1 gbr
3
PENGATURAN FONT
Ketebalan huruf
font-weight normal
bold
100 ~ 900
Selector Keterangan
a:link Keadaan awal pemicu link aktif
a:visited Keadaan pemicu link setelah
dikunjungi
a:active Keadaan pemicu yang sedang aktif
a:hover Kejadian pada pemicu link saat mouse
digerakkan diatasnya
4
5