You are here: Reference > CSS > properties > browser specific extensions > -moz-background-inline-policy
-moz-background-inline-policy property
Specifies how the background-image of an inline element is determined when the contents of the inline element wrap onto multiple lines.
JavaScript page for this property: MozBackgroundInlinePolicy. You can find other example(s) there. |
Possible values:
One of the following values:
The background-image is shown behind the entire element as a whole. | |||||||
The background-image wraps around on to each line as if the text had no line breaks. | |||||||
The background-image is shown behind each box as a whole in the current element. | |||||||
Takes the value of this property from the computed style of the parent element. |
Default: continuous.
Example HTML code 1:
This example illustrates the use of the -moz-background-inline-policy property:
|
||||
<head> <style> .example { background: url("rainbow.gif"); -moz-background-inline-policy: continuous; border: solid 2px black; } </style> </head> <body> <span class="example"> <strong>This element should have a rainbow background which follows it around, however much it wraps, so that it starts on red on the first line and gradually goes through yellow, orange, green, blue, indigo, and violet. If the inline is longer than the background, the background should start over. If each line starts again at red, then the test has failed.</strong> Filler text. Filler text. Filler text. Filler text. Filler text. Filler text. Filler text. Filler text. Filler text. Filler text. Filler text. Filler text. Filler text. Filler text. </span> </body> |
||||
|
||||
Did you find this example helpful?
|
Supported by tags:
a, abbr, acronym, address, applet, b, bdo, big, blink, blockQuote, body, button, caption, center, cite, code, dd, del, dfn, dir, div, dl, dt, em, embed, fieldSet, font, form, H1, H2, H3, H4, H5, H6, hr, html, i, iframe, img, input:button, input:checkbox, input:file, input:image, input:password, input:radio, input:reset, input:submit, input:text, ins, isIndex, kbd, label, legend, li, marquee, menu, object, ol, optGroup, option, p, pre, s, samp, select, small, span, strike, strong, sub, sup, table, tBody, td, textArea, tFoot, th, tHead, tt, u, ul, var
Related pages:
-moz-background-clip
-moz-background-origin
background
background-attachment
background-color
background-image
background-position
background-repeat
-moz-background-origin
background
background-attachment
background-color
background-image
background-position
background-repeat
External links:
User Contributed Comments