WCM - Das österreichische Computer Magazin Forenübersicht
 

Zurück   WCM Forum > Rat & Tat > Programmierung

Programmierung Rat & Tat für Programmierer

Microsoft KARRIERECAMPUS

 
 
Themen-Optionen Ansicht
Alt 21.05.2003, 13:59   #7
_m3
Inventar
 
Registriert seit: 24.09.2001
Beiträge: 7.335


Standard

RTFM: http://www.w3.org/TR/CSS2/colors.htm...ckground-image

Code:
'background-image'
    Value:  	<uri> | none | inherit
    Initial:  	none
    Applies to:  	all elements
    Inherited:  	no
    Percentages:  	N/A
    Media:  	visual

This property sets the background image of an element. When setting a background image, authors should also specify a background color that will be used when the image is unavailable. When the image is available, it is rendered on top of the background color. (Thus, the color is visible in the transparent parts of the image).

Values for this property are either <uri>, to specify the image, or 'none', when no image is used.

Example(s):
<style>
BODY { background-image: url("marble.gif") }
P { background-image: none }
</style>


'background-repeat'
    Value:  	repeat | repeat-x | repeat-y | no-repeat | inherit
    Initial:  	repeat
    Applies to:  	all elements
    Inherited:  	no
    Percentages:  	N/A
    Media:  	visual

If a background image is specified, this property specifies whether the image is repeated (tiled), and how. All tiling covers the content and padding areas of a box. Values have the following meanings:

repeat
    The image is repeated both horizontally and vertically. 
repeat-x
    The image is repeated horizontally only. 
repeat-y
    The image is repeated vertically only. 
no-repeat
    The image is not repeated: only one copy of the image is drawn. 

Example(s):

<style>
BODY { 
  background: white url("pendant.gif");
  background-repeat: repeat-y;
  background-position: center;
}
</style>
____________________________________
Weiterhin zu finden auf http://martin.leyrer.priv.at , http://twitter.com/leyrer , http://www.debattierclub.net/ , http://www.tratschen.at/ und via Instant Messaging auf Jabber: m3 <ät> cargal.org .
_m3 ist offline   Mit Zitat antworten
 


Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
 
Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.

Gehe zu


Alle Zeitangaben in WEZ +2. Es ist jetzt 02:09 Uhr.


Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Forum SEO by Zoints
© 2009 FSL Verlag