Background-repeat defines if and how background images will be repeated after they have been sized and positioned
Overview tablerepeat
backgroundRepeat
background-repeat: <repeat-style>
repeat
no-repeat
repeat-x
repeat-y
round
space
The following examples use the background-repeat attribute and the background-repeat property to specify whether the background image is tiled.
This example uses a call to an embedded (global) style sheet to tile the image.
<STYLE>
.style1 { background-image:url(sphere.jpg);
background-repeat:repeat }
.style2 { background-image:url(sphere.jpeg);
background-repeat:no-repeat }
</STYLE>
</HEAD>
<BODY>
<SPAN onmouseover="this.className='style1'"
onmouseout="this.className='style2'" onclick="this.className=''">
. . . </SPAN>
This example shows how to use inline scripting to tile the image.
<SPAN onmouseover="this.style.backgroundImage='url(sphere.jpeg)';
this.style.backgroundRepeat='repeat'">
:
</SPAN>
Usage
In CSS2.1, only one keyword is permitted, affecting both the horizontal and vertical axes.
In CSS3, one or two keywords are permitted. One keyword affects both axes in the same way as CSS2.1 If two keywords are used, the first applies to the horizontal axis, and the second to the vertical axis.
If an element has multiple background images, the repeat pattern for each image can be set by assigning a comma-separated list of individual values. The values are applied to the background images in the same order as they are listed in the background-image
property.
background-repeat
Microsoft Developer Network: [Windows Internet Explorer API reference Article]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4