styleditor.net styleditor.net styleditor.net styleditor.net עברית accent-coloralignalignment-baselineallanchoranimationappearanceaspect-ratiobackdrop-filterbackface-visibilitybackgroundbackground-attachmentbackground-blend-modebackground-clipbackground-colorbackground-imagebackground-originbackground-positionbackground-position-xbackground-position-ybackground-repeatbackground-repeat-xbackground-repeat-ybackground-sizebaselineblock-sizeborderbottomboxbreakcaption-sidecaretclearclipcolorcolumncolumnscontaincontainercontentcornercountercursorcxcyddirectiondisplaydominant-baselinedynamic-range-limitempty-cellsfield-sizingfillfilterflexfloatfloodfontforced-color-adjustgapgridheighthyphenatehyphensimageime-modeinitial-letterinline-sizeinsetinteractivityinterestinterpolate-sizeisolationjustifyleftletter-spacinglighting-colorlinelistmarginmarkermaskmathmaxminmix-blend-modeobjectoffsetopacityorderorphansoutlineoverflowoverlayoverscrollpaddingpagepaint-orderperspectiveplacepointer-eventspositionprint-color-adjustquotesrreadingresizerightrotaterowrubyrulerxryscalescrollscrollbarshapespeakstopstroketab-sizetable-layouttexttimelinetoptouch-actiontransformtransitiontranslatetrigger-scopeunicode-bidiuser-selectvector-effectvertical-alignviewvisibilitywhitewidowswidthwill-changewordwriting-modexyz-indexzoom

background-position CSS Property

The background-position property sets the position of a background image relative to the positioning area defined by background-origin. Values may be a keyword (left, center, right, top, bottom), a <length-percentage>, or a combination. With multiple layers, give one value per layer separated by commas. .hero { background-position: center; } .offset { background-position: right 20px bottom 10px; } min:0 max:9999 step:1 units:% | px | em | rem | vw | vh | vmin | vmax | pt leftAligns to the left horizontal edge (equivalent to 0% on X axis).rightAligns to the right horizontal edge (equivalent to 100% on X axis).topAligns to the top vertical edge (equivalent to 0% on Y axis).bottomAligns to the bottom vertical edge (equivalent to 100% on Y axis).centerCenters on the relevant axis (equivalent to 50%). CSS Backgrounds Module Level 4 First Public Working Draft <length-percentage> W3CMDN CSS Show all code Edit CSS online The plugin that remembers hundreds of CSS items for you Every CSS property — in a live demonstration The bilingual CSS reference
definitionexamplessyntaxmodulespecificationvalue typessourcesvisual demonstration