HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

background-position-y

Description

The background-position-y property for CSS specifies the background position’s vertical component.

Syntax

CSS

background-position-y: value;

JS

object.style.backgroundPositionY = "value";

Values

<'background-position-y'> = [ center | [ [ top | bottom | y-start | y-end ]? <length-percentage>? ]! ]#
center

top

bottom

y-start

y-end

<length-percentage> =
    <length> |
    <percentage>
<length>

Specifies the length using a number followed by a unit of measurement.

<percentage>

Specifies the percentage using a number followed by a percent sign (%).

Initial

0%

Examples

1 · bottom

2 · center

3 · length

4 · percentage

5 · top

6 · y-end

7 · y-start

8 · JS