Properti color digunakan untuk menentukan warna font. Sebenarnya properti color bukan lah bagian dari properti font.

Cara penulisan:

property -> color

value ->
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



RSS feed | Trackback URI

4 Comments »

Comment by fanani
2009-05-02 04:04:25

makasi infonya.. semoga bermanfaat
good luck ^_^

 
Comment by Abdurrazaq
2009-06-24 13:39:09

waaah… maksih ya… banyak sekali ilmu CSS yg saya daapt dari blog ini makasih ya… telah berbagi ilmu nya

 
Comment by adhi
2010-01-26 11:11:59

bookmark dolo..:)

 
Comment by ekoalizer
2010-01-31 12:26:16

wah keren….
akhirnya paham juga CSS..
saya minta versi pdfnya dong

 
Name (required)
E-mail (required - never shown publicly)
URI
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.

Trackback responses to this post

Business Orange Wordpress theme by
E-Themes