property

background-position-y — CSS reference

Controls vertical positioning. Initial 0%, not inherited. Bottom offsets are measured from the lower edge of the positioning area; they are not offsets from the element content unless the positioning area is the content box.

Formal Syntax & Structure

css syntaxcss
<length-percentage> | top | center | bottom [<length-percentage>]? (selected, comma-separated)

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS image painting lab</title><style>body {margin:0} .sample {background:#dcebe9;color:#182e32}body{background:white} #a{width:100px;height:80px;background-color:blue}#a{background-image:linear-gradient(red,red);background-size:20px 20px;background-repeat:no-repeat;background-position-y:bottom 10px}</style><body><div id="a" aria-hidden="true"></div><p>Decorative background sample.</p></body></html>
CSS Reference