Cascading Style Sheets - Beispiel-Quelltext
/* Formatvorlage */
BODY {
background-image:url(css-log2.gif);
border:dotted thin #006600;
}
H1 {
color:red;
background-color:#ffff00;
font-family:Helvetica,Arial;
font-size:24pt;
line-height:24pt;
border:solid thin red;
margin:6pt;
}
P.imgw {
color:#000066;
background-color:#00dd00;
border:solid thin #000066;
font-family:Helvetica,Arial;
font-size:14pt;
text-indent:1em;
margin-left:28pt;;
margin-right:28pt;
}
P.imgx {
color:#000066;
background-color:#00dd00;
border:solid thin #000066;
background-image:url(css-log3.gif);
background-repeat:repeat-x;
font-family:Helvetica,Arial;
font-size:14pt;
text-indent:1em;
margin-left:28pt;
margin-right:28pt;
}
P.imgy {
color:#000066;
background-color:#00dd00;
border:solid thin #000066;
background-image:url(css-log3.gif);
background-repeat:repeat-y;
font-family:Helvetica,Arial;
font-size:14pt;
text-indent:1em;
margin-left:28pt;;
margin-right:28pt;
}
P.imgz {
color:#000066;
background-color:#00dd00;
border:solid thin #000066;
background-image:url(css-log3.gif);
background-repeat:no-repeat;
font-family:Helvetica,Arial;
font-size:14pt;
text-indent:1em;
margin-left:28pt;;
margin-right:28pt;
}