Saturday, January 7, 2012
CSS Font Color
Properti color digunakan untuk menentukan warna font. Sebenarnya properti color bukan lah bagian dari properti font.
Cara penulisan:
property -> colorvalue ->
nama warna – contoh: red, black, white
hexadesimal – contoh: #ff0000
RGB – contoh: rgb(0, 220, 98)
Contoh penulisan:
h1 {font-size: 14px;
color: red;
}
h2 {
font-size: 14px;
color: #0000ff;
}
Hasil:
Ini adalah Heading 1 (H1) menggunakan warna merah
Ini adalah Heading 2 (H2) menggunakan warna biru
Subscribe to:
Post Comments
(
Atom
)
Pengunjung Ke :
Categories
- Android ( 3 )
- Anti Virus ( 2 )
- Audio n Video ( 3 )
- BBM ( 1 )
- Berita ( 7 )
- Blogging ( 42 )
- Facebook ( 9 )
- Internet ( 3 )
- Kata - kata ( 1 )
- Lenovo_A390 ( 2 )
- Linux ( 2 )
- Make mooney ( 4 )
- Microsoft Office ( 2 )
- sekolah_bahasa indo ( 2 )
- sekolah_IT_c++ ( 9 )
- sekolah_IT_css ( 11 )
- sekolah_IT_Database dan SI ( 2 )
- sekolah_IT_database(SQL) ( 2 )
- sekolah_IT_fisika ( 1 )
- sekolah_IT_html ( 17 )
- sekolah_IT_java ( 2 )
- sekolah_IT_photoshop ( 2 )
- sekolah_IT_php ( 20 )
- sekolah_IT_so/is ( 2 )
- Sekolah_kimia ( 2 )
- Software ( 14 )
- Software_Editing ( 3 )
- Tampilan Dekstop ( 6 )
- Tips n Trik ( 38 )
0 comments :
Post a Comment