Willkommen bei Schnipsel, Code Schnipsel zu Wordpress, PHP, HTML, CSS, jQuery und so weiter...

CSS Background Kurzschreibweise

04.2009 / von: David Hellmann / 0 Kommentare / Kategorie: CSS / Tags: , ,

Background formatierung mit nur einer Zeile.

1
2
3
4
5
6
7
.background-kurz {
	background:#000 url(images/background.jpg) 0px 0px fixed repeat;
	/* statt #000 (Farben) kann man auch: transparent nutzen.
	    statt pixel angaben kann man auch: left, bottom, top, center, right nutzen.
	    statt fixed wäre auch scroll möglich oder weglassen
	    statt repeat wäre auch no-repeat, repeat-x oder repeat-y möglich */
}

Statistik: read: 2315 / today: 2 / last: 08.02.2012
//

  1. 0 Kommentare

Kommentar schreiben

Code einfügen: <pre lang="php" line="1"> Code hier </pre>