w3schools versi Indonesia supported by Irawan
 
Home

Belajar CSS
Intro
Syntax
How To
Background
Text
Font
Border
Garis Tepi
Penjeda
List
Tabel

Belajar HTML

Link-Link
www.w3schools.com

Background CSS

Sebelumnya -- Berikutnya
--------------------------------------------------------------------------------

Property background pada CSS menjelaskan efek background pada sebuah elemen.

--------------------------------------------------------------------------------

Property Background CSS

Property background CSS mengijinkanmu mengatur warna background sebuah elemen, memberikan gambag sebagai background, mengulang background secara vertikal atau horizontal, dan mengatur posisi sebuah gambar pada suatu halaman.

Versi:
IE=Internet Explorer
F=Firefox
N=Netscape
W3C=Rekomendasi W3C

Property Deskripsi Nilai IE F N W3C
background Properti singkat untuk menuliskan semuanya background-color
background-image
background-repeat background-attachment background-position
4 1 6 1
background-attachment Mengatur apakah gambar background tetap atau bergerak mengikuti halaman scroll
fixed
4 1 6 1
background-color Mengatur warna background suatu elemen color-rgb
color-hex
color-name
transparent
4 1 4 1
background-image Memberikan sebuah gambar sebagai background url(URL)
none
4 1 4 1
background-position Mengatur posisi awal background gambar top left
top center
top right
center left
center center
center right
bottom left
bottom center
bottom right
x% y%
xpos ypos
4 1 6 1
background-repeat Mengatur apakah background akan diulang-ulang jika ukuran window lebih besar dari ukuran gambar repeat
repeat-x
repeat-y
no-repeat
4 1 4 1


--------------------------------------------------------------------------------
Sebelumnya -- Berikutnya
--------------------------------------------------------------------------------


 

Pilih Style
untuk halaman ini
Style Awal (Hijau)
Style Kuning
Style Abu-Abu