Open main menu

CDOT Wiki β

CSS GUIDE BACKGROUND-POSITION-Y

Summary

Establish the location of the left (y) with the background-image attribute.

Inherited: No
Initial Value 0%

Syntax

background-position-y: [percentage | length] | [top | center | bottom]

Legal Values

Value Description
percentage percentage of the block level element
length length values (in the unit of measure that best suits the medium
top aligns object to the top on the y - axis
centre aligns object to the centre on the y - axis
bottom aligns object to the bottom on the y - axis

Mozilla Recommended Values

Usage Examples

Ext/Doc: body { background-image: url(http://www.foo.com/image.gif);
background-repeat: repeat-y;
background-position-y: center }

Notes

This tag applies to Applies to block-level and replaced elements.

Specification Conformance

Browser Compatibility

Works on all browsers.

See Also