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

You can specify how many times the background image is repeated. The possibilities are: the default repeat (repeats both horizontaly and verticaly - 1), repeat-x (horizontal repeat only - 2), repeat-y (vertical repeat only - 3) and no-repeat (4)

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

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

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

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

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