0% found this document useful (0 votes)
4 views2 pages

Daftar Properti CSS dan Fungsinya

Dokumen ini adalah daftar lengkap properti CSS beserta karakteristik dan nilai umumnya. Terdapat kategori seperti Teks & Font dan Background, dengan berbagai properti yang menjelaskan fungsi dan contoh penggunaannya. Setiap properti mencakup cara pengaturan dan nilai-nilai yang dapat digunakan dalam CSS.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views2 pages

Daftar Properti CSS dan Fungsinya

Dokumen ini adalah daftar lengkap properti CSS beserta karakteristik dan nilai umumnya. Terdapat kategori seperti Teks & Font dan Background, dengan berbagai properti yang menjelaskan fungsi dan contoh penggunaannya. Setiap properti mencakup cara pengaturan dan nilai-nilai yang dapat digunakan dalam CSS.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Daftar Lengkap Properti CSS dan Karakteristiknya

Kategori Properti Karakteristik / Nilai Umum Contoh


Fungsi

Teks & Font color Mengatur nama warna, color: blue;


warna teks kode heks,
rgb/rgba

Teks & Font font-family Mengatur jenis nama font atau font-family:
huruf fallback Arial, sans-
serif;

Teks & Font font-size Mengatur px, em, %, rem font-size: 16px;
ukuran huruf

Teks & Font font-weight Ketebalan normal, bold, font-weight:


huruf 100–900 bold;

Teks & Font font-style Gaya huruf normal, italic, font-style:


oblique italic;

Teks & Font text-align Perataan teks left, right, text-align:


center, justify center;

Teks & Font text-decoration Garis teks none, text-decoration:


underline, line- underline;
through,
overline

Teks & Font text-transform Perubahan uppercase, text-transform:


kapital lowercase, uppercase;
capitalize

Teks & Font line-height Jarak antar angka, %, px line-height: 1.5;


baris

Teks & Font letter-spacing Jarak antar px, em letter-spacing:


huruf 2px;

Teks & Font word-spacing Jarak antar kata px, em word-spacing:


5px;

Teks & Font white-space Mengatur spasi normal, white-space:


& line break nowrap, pre, nowrap;
pre-wrap
Background background- Mengatur nama warna, background-
color warna latar kode heks, rgb color: #222;

Background background- Gambar latar url(...) background-


image image:
url([Link]);

Background background- Pengulangan repeat, no- background-


repeat gambar repeat, repeat- repeat: no-
x, repeat-y repeat;

Background background- Ukuran gambar cover, contain, background-


size px, % size: cover;

Background background- Posisi gambar top, center, background-


position bottom, x% y% position:
center;

Background background- Scroll/fixed scroll, fixed, background-


attachment local attachment:
fixed;

You might also like