>> English << | česky | PortuguêsZVON > Tutorials > CSS2 tutorial
>> Example 22 << | Prev | Next | Index | Contents

If a background image has been given, its position and eventual repeated occurence can be specified.

XML SourceCSS stylesheetExample link
(1)
     <AAA> </AAA>

AAA {background-image:url("../Pictures/zvon.gif")}
AAA {background-repeat:repeat-x}
AAA {background-position: center}
View output
XML SourceCSS stylesheetExample link
(2)
     <AAA> </AAA>

AAA {background-image:url("../Pictures/zvon.gif")}
AAA {background-repeat:repeat-x}
AAA {background-position: bottom}
View output
XML SourceCSS stylesheetExample link
(3)
     <AAA> </AAA>

AAA {background-image:url("../Pictures/zvon.gif")}
AAA {background-repeat:no-repeat}
AAA {background-position: center right}
View output
XML SourceCSS stylesheetExample link
(4)
     <AAA> </AAA>

AAA {background-image:url("../Pictures/zvon.gif")}
AAA {background-repeat:no-repeat}
AAA {background-position: 20% 60%}
View output