Difference between revisions of "CSS GUIDE BACKGROUND-POSITION-X"
(→Syntax) |
|||
Line 1: | Line 1: | ||
− | |||
== Summary == | == Summary == | ||
− | Establish the location of the left (x) | + | Establish the location of the left (x) with the background-image attribute. |
− | |||
<br> | <br> | ||
<br> | <br> | ||
Line 20: | Line 18: | ||
<th>Value</th> | <th>Value</th> | ||
<th>Description</th> | <th>Description</th> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <th>percentage</th> | ||
+ | <th>percentage of the block level element</th> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <th>length/th> | ||
+ | <th>length values (in the unit of measure that best suits the medium</th> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <th>left</th> | ||
+ | <th>aligns object to the left on the x - axis</th> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <th>centre</th> | ||
+ | <th>aligns object to the centre on the x - axis</th> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <th>right</th> | ||
+ | <th>aligns object to the right on the x - axis</th> | ||
</tr> | </tr> | ||
Revision as of 13:25, 13 December 2006
Contents
Summary
Establish the location of the left (x) with the background-image attribute.
Inherited: No
Initial Value
0%
Syntax
background-position-x: [percentage | length] | [left | center | right ]
Legal Values
Value | Description |
---|---|
percentage | percentage of the block level element |
length/th> | length values (in the unit of measure that best suits the medium |
left | aligns object to the left on the x - axis |
centre | aligns object to the centre on the x - axis |
right | aligns object to the right on the x - axis |
Mozilla Recommended Values
Usage Examples
p{border-style: dotted}
All four borders will be dotted.
p{border-style: dotted dashed}
Notes
Specification Conformance
CSS1 Conformance:
Browser Compatibility
Browser Compatibility: IE 4+ / NN 4+