From fc24eed609609b4e925b973e0c98cbc96e521004 Mon Sep 17 00:00:00 2001 From: dzevad-cyber Date: Fri, 30 Jan 2026 00:42:04 +0100 Subject: [PATCH 01/11] feat: add description --- .../background-position-y.md | 88 +++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 content/css/concepts/background/terms/background-position-y/background-position-y.md diff --git a/content/css/concepts/background/terms/background-position-y/background-position-y.md b/content/css/concepts/background/terms/background-position-y/background-position-y.md new file mode 100644 index 00000000000..06f18d93b8e --- /dev/null +++ b/content/css/concepts/background/terms/background-position-y/background-position-y.md @@ -0,0 +1,88 @@ +--- +Title: 'background-position-y' +Description: 'Sets the initial vertical position for every background image. The position is relative to the position layer set by background-origin.' +Subjects: + - 'Web Development' + - 'Web Design' +Tags: + - 'Background' + - 'Box Model' + - 'Positioning' +CatalogContent: + - 'learn-css' + - 'paths/front-end-engineer-career-path' + - 'paths/full-stack-engineer-career-path' +--- + +## Syntax + +**Note:** This property will be overridden if `background` or `background-position` properties are applied after it. + +```css +background-position-y: ; +``` + +where `` can be one of the following: + +- Keywords values + - `top`: aligns top edge of the background image with the top edge of the container + - `center`: aligns center of the background image with the center of the container + - `bottom`: aligns the bottom of the background image with the bottom edge of the container +- Percentage values: + - `0%`: top edge of the background image is aligned with top edge of the container + - `50%%`: centers the background image inside a container + - `100%`: bottom edge of the background image is aligned with bottom edge of the container +- `padding-box`: Relative positioning to the padding box. +- `border-box`: Relative positioning to the border box. +- Global values: `inherit`, `initial`, `revert`, `unset` + +## Example 1 + +Set background positioning to the edge of the content box: + +```css +.main { + border: 5px dashed #4d4d4d; + padding: 1rem; + background: url(images/background-origin.jpg) no-repeat; + background-origin: content-box; +} +``` + +The resulting output of the code block above is: + +![Background origin set to padding-box](https://raw.githubusercontent.com/Codecademy/docs/main/media/background-origin-content.png 'background-origin: padding-box') + +## Example 2 + +Set background positioning to the inside edge of the border, respecting its padding: + +```css +.main { + border: 5px dashed #4d4d4d; + padding: 1rem; + background: url(images/background-origin.jpg) no-repeat; + background-origin: padding-box; +} +``` + +The resulting output of the code block above is: + +![Background origin set to padding-box](https://raw.githubusercontent.com/Codecademy/docs/main/media/background-origin-padding.png 'background-origin: padding-box') + +## Example 3 + +Set background positioning to the edge of the border: + +```css +.main { + border: 5px dashed #4d4d4d; + padding: 1rem; + background: url(images/background-origin.jpg) no-repeat; + background-origin: border-box; +} +``` + +The resulting output of the code block above is: + +![Background origin set to padding-box](https://raw.githubusercontent.com/Codecademy/docs/main/media/background-origin-border.png 'background-origin: padding-box') From 62ea8e50e6c868bf76c15dc7e6988cf056916ddc Mon Sep 17 00:00:00 2001 From: dzevad-cyber Date: Fri, 30 Jan 2026 03:32:28 +0100 Subject: [PATCH 02/11] feat: add all the code examples and example images --- .../background-position-y.md | 130 ++++++++++++++---- media/background-position-y-keywords.png | Bin 0 -> 4641 bytes media/background-position-y-length.png | Bin 0 -> 4700 bytes .../background-position-y-multiple-values.png | Bin 0 -> 4577 bytes 4 files changed, 104 insertions(+), 26 deletions(-) create mode 100644 media/background-position-y-keywords.png create mode 100644 media/background-position-y-length.png create mode 100644 media/background-position-y-multiple-values.png diff --git a/content/css/concepts/background/terms/background-position-y/background-position-y.md b/content/css/concepts/background/terms/background-position-y/background-position-y.md index 06f18d93b8e..38ef7294556 100644 --- a/content/css/concepts/background/terms/background-position-y/background-position-y.md +++ b/content/css/concepts/background/terms/background-position-y/background-position-y.md @@ -1,6 +1,6 @@ --- Title: 'background-position-y' -Description: 'Sets the initial vertical position for every background image. The position is relative to the position layer set by background-origin.' +Description: 'Sets the initial vertical position for every background image. The position is relative to the position set by background-origin property..' Subjects: - 'Web Development' - 'Web Design' @@ -19,7 +19,9 @@ CatalogContent: **Note:** This property will be overridden if `background` or `background-position` properties are applied after it. ```css -background-position-y: ; +background-position-y: ; // single value +background-position-y: ; // mutltiple values + ``` where `` can be one of the following: @@ -32,57 +34,133 @@ where `` can be one of the following: - `0%`: top edge of the background image is aligned with top edge of the container - `50%%`: centers the background image inside a container - `100%`: bottom edge of the background image is aligned with bottom edge of the container -- `padding-box`: Relative positioning to the padding box. -- `border-box`: Relative positioning to the border box. -- Global values: `inherit`, `initial`, `revert`, `unset` +- Length values + - `10px` `5cm` `2rem` `2em`: top edge of the background image is moved from top of the container +- Multiple values + +and `direction` can be one of the following + - `top`: move from top, default direction + - `bottom`: move from bottom + ## Example 1 -Set background positioning to the edge of the content box: +Set `background-position-y` using keywords: ```css -.main { - border: 5px dashed #4d4d4d; - padding: 1rem; - background: url(images/background-origin.jpg) no-repeat; - background-origin: content-box; +.img { + border: 2px dashed black; + width: 200px; + height: 200px; + background-image: url("./assets/box.png"); + background-repeat: no-repeat; +} + +.img.top { + background-position-y: top; } + +.img.center { + background-position-y: center; +} + +.img.bottom { + background-position-y: bottom; +} + ``` The resulting output of the code block above is: -![Background origin set to padding-box](https://raw.githubusercontent.com/Codecademy/docs/main/media/background-origin-content.png 'background-origin: padding-box') +![Background-position-y-keywords](../../../../../../media//background-position-y-keywords.png) ## Example 2 -Set background positioning to the inside edge of the border, respecting its padding: +Set `background-position-y` using percentages: ```css -.main { - border: 5px dashed #4d4d4d; - padding: 1rem; - background: url(images/background-origin.jpg) no-repeat; - background-origin: padding-box; +.img { + border: 2px dashed black; + width: 200px; + height: 200px; + background-image: url("./assets/box.png"); + background-repeat: no-repeat; +} + +.img.top { + background-position-y: 0%; +} + +.img.center { + background-position-y: 50%; +} + +.img.bottom { + background-position-y: 100%; } ``` The resulting output of the code block above is: -![Background origin set to padding-box](https://raw.githubusercontent.com/Codecademy/docs/main/media/background-origin-padding.png 'background-origin: padding-box') +![Background-position-y-percentages](../../../../../../media//background-position-y-keywords.png) ## Example 3 -Set background positioning to the edge of the border: +Set `background-position-y` using length: + +```css +.img { + border: 2px dashed black; + width: 200px; + height: 200px; + background-image: url("./assets/box.png"); + background-repeat: no-repeat; +} + +.img.top { + background-position-y: 1cm; +} + +.img.center { + background-position-y: 5rem; +} + +.img.bottom { + background-position-y: 7em; +} +``` + +The resulting output of the code block above is: + +![Background-position-y-percentages](../../../../../../media//background-position-y-length.png) + +## Example 4 + +Set `background-position-y` using multiple values: ```css -.main { - border: 5px dashed #4d4d4d; - padding: 1rem; - background: url(images/background-origin.jpg) no-repeat; - background-origin: border-box; +.img { + border: 2px dashed black; + width: 200px; + height: 200px; + background-image: url("./assets/box.png"); + background-repeat: no-repeat; +} + +.img.top { + background-position-y: bottom 20%; +} + +.img.center { + background-position-y: bottom 7rem; +} + +.img.bottom { + background-position-y: bottom 2cm; } ``` The resulting output of the code block above is: -![Background origin set to padding-box](https://raw.githubusercontent.com/Codecademy/docs/main/media/background-origin-border.png 'background-origin: padding-box') +![Background-position-y-multiple-values](../../../../../../media//background-position-y-multiple-values.png) + diff --git a/media/background-position-y-keywords.png b/media/background-position-y-keywords.png new file mode 100644 index 0000000000000000000000000000000000000000..df394d66a7452db9144dc758ea6c1a5d0a483515 GIT binary patch literal 4641 zcmeHLc{r49+rLpvQN$xzA{BaM%QkjW$`Yn{EZM^-G`6v2ne0iM#ej0{hngCN#KaNh@G1+#&IIXk$p1?U@D!eFou!{$Tary$zE25sSkLRj+W+vHD8b;!H3LQ251vy7C%Lcu?#2Dov&`8_zSL&E{lv$-kn2Oy+BpgBc^tv- zliKT46L^I;6IPYV&pJu^Nzx?f>-JQ&P~k|557ljatfi(V3Ru@SpMwLJFWdw{2&#TZ zfuPAa6g#9Rk5+=9D;Zc8=v_+<`7no%kB^|d0_ z7RM>rTP@tBO=bjR(*w?8J7Uj&Myq#F9-KjXdwaXM)M%9FxVYGyCJ%?hP1fr44mj`oyV#@k zEne5DU5phP`dtD|pPNG+Og22s8x|JkP8y8k6d+Vqa&U04Md|fQu|SXGd#A^}RW+5B zm9@3gDaiey?*k^@E-f$XU^c3V#KB}fRtTZw_UhuNS>}L=e~rW_?DO{Y^q>9%`|x3O z&0{Jpcse#)!-`-Q%7qZ+g_Vv@Nk_`}q{%zwJ5)->Hcrr!l9EP7MiTI;(tp_5*_O=V?e^YZeFi;FAl<#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s!x8VItg5n`R;v@$vEb`T0`jxcj=Og>^=-cx=UH_e3k+1Btv#9_=o0lJGb%Jou*C8Id%B z%{Y`r=+#iO(HAH)ezuR|wu?egGfk8>8i*MdecI49=;-NeAy_Z+}KIXca=SrOL*p$@+iv;m*-y-c*hi zSX-I_QM>DSj0c7e4i=90Tbh1gwvk;Zm`a)6;}tnxnGN62qO^2VKRv4SZb~IW2xtO(cIPe2D)i z8vCeoIlIQ;<(7spN%`@^U(45IZI{}CMBm%#=w!X}1Ryn`gb*UL&h<4F{z)LF&>HDx z{}uHm)nE8esE;W?l1EkfL$3d131BxY9yc`_obKx0ecFptcp6b}wXC##XsTUSH@9*#GQdLmkNveNzU&ix}mIGR;^D#E# z&qF)3{;>;4=G{CFh!(8WaAysu=&uAhSQS!4BswmZ<~xx#zATI+aEo=lf1j%9)F~9o z>duIMdhT~?i*&`T8pGz|_>>o%?`zUvESf14`}a=;-zC zO6J4;!uTrjANZihFcMXaiycV(BMleOg(>V?1gMd&ZFbv|+a2OoR#wt#Vj*!`Y1a_R z3JR=(|D-Yayv?6k9|3^5>qhBc!(%p9yPYuWV`)w;!g;!w4J{?5lrxf`JMyHDf!2UP zAmFq@{psVT;%`=HRIm$XbA3g3^J_|M7+)*mIMc7vIat#)Ifv<~snEsAw$!86u{=~_ z1gIiS4)f;b=H5-||Mz@fQCjLQs#jZ`h>E`jl+)9ISKsfY@YlBT>IN7h}>CJ*`tyJpr@0NEifvFw^82h8Q>~4qf(w_IvwT| zH(opcFgDC$l@aZSk?H?dfED5O=#hOXUl}wK+3oXf-HmG}4+4G)p6lPEFC!y!_M?gd@|!dHH_Ch9n2c&@Bg|&#iXe#b;{*mV!PV%`Sa)b`NEOh ziJz3dynojeR{6zqMC@@J_lRdqEojA z|El=svj>lC2ncX10`%qrUH|SZiT7vSM|+-%c-dW-0_P`?k%8ICe0}HW{{ewV B!m$7V literal 0 HcmV?d00001 diff --git a/media/background-position-y-length.png b/media/background-position-y-length.png new file mode 100644 index 0000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W;w z_|Rl=5QFBhD*#sH6%-QU;!f_JPh0_uhzLw`OG`J$&;e-jIi)g0c~OzOOD+z_6g)n- zb~Mzuc)<8NqQ>=Tv)~gQXN40(eKs>@h}qETW#x94yVZ}vf5ho2Axmt9H{)M!^FvY~ zk!oga-1q9$UBc0zAYys>+o2)D{E+&<;xG5&&5l|A+P7Jd?k@LSF)YyfV~k{5e2!Fv>qHN`8KG-;)L@hrs{!BA2BRhU2m_!XhPaF-KW zzA;8B7AAXfT1bioHBC)TUnBl5QQ$kzH*%$aHd0|Mp_9@?nsESrRK$@_F`kJ*+7@P< zdB6%oLq!z2&NLH$ z2`Uj#t8(~^wq0t9l+f(R^^sz+Z0Zum0wzzSPAqVNBq%5>jEIO(P*7+{K3&)~K%*(k zUIY%Hq4bANd~u3*6M55T_fWHCX`(N#AH`i>1{wo`K7`RICsn(~i9*Q%L9aUNaHfTY zg@DO{oC*tb&>86O?+2=4U|<|Qp#~x!W#sF6L^DFsJTwi>Ayy&XF@w!5X2qpQG zfkXac4iRTg2uCee_l`t(pM&@@bO)r4K^&&P=~{*D&T>{NoG9G5za5(8J(r7g3Z>=H_46%Wxlebt-kexMv2ncd^aNAd7AAJ5_vx2rI literal 0 HcmV?d00001 From 54ca5f18e2261ef511c17d62719bc56421ce1a99 Mon Sep 17 00:00:00 2001 From: dzevad-cyber Date: Fri, 30 Jan 2026 15:57:48 +0100 Subject: [PATCH 03/11] chore: remove example 4 --- .../background-position-y.md | 29 ------------------- 1 file changed, 29 deletions(-) diff --git a/content/css/concepts/background/terms/background-position-y/background-position-y.md b/content/css/concepts/background/terms/background-position-y/background-position-y.md index 38ef7294556..7c9e77b556f 100644 --- a/content/css/concepts/background/terms/background-position-y/background-position-y.md +++ b/content/css/concepts/background/terms/background-position-y/background-position-y.md @@ -134,33 +134,4 @@ The resulting output of the code block above is: ![Background-position-y-percentages](../../../../../../media//background-position-y-length.png) -## Example 4 - -Set `background-position-y` using multiple values: - -```css -.img { - border: 2px dashed black; - width: 200px; - height: 200px; - background-image: url("./assets/box.png"); - background-repeat: no-repeat; -} - -.img.top { - background-position-y: bottom 20%; -} - -.img.center { - background-position-y: bottom 7rem; -} - -.img.bottom { - background-position-y: bottom 2cm; -} -``` - -The resulting output of the code block above is: - -![Background-position-y-multiple-values](../../../../../../media//background-position-y-multiple-values.png) From 9f5c9c439c083753bb28e9140f580d3e84ef2b95 Mon Sep 17 00:00:00 2001 From: dzevad-cyber Date: Fri, 30 Jan 2026 16:02:32 +0100 Subject: [PATCH 04/11] refactor: remove comments --- .../terms/background-position-y/background-position-y.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/css/concepts/background/terms/background-position-y/background-position-y.md b/content/css/concepts/background/terms/background-position-y/background-position-y.md index 7c9e77b556f..3812438c902 100644 --- a/content/css/concepts/background/terms/background-position-y/background-position-y.md +++ b/content/css/concepts/background/terms/background-position-y/background-position-y.md @@ -19,8 +19,8 @@ CatalogContent: **Note:** This property will be overridden if `background` or `background-position` properties are applied after it. ```css -background-position-y: ; // single value -background-position-y: ; // mutltiple values +background-position-y: ; +background-position-y: ; ``` From 8a49432b691284df529002708cd15965bcf1fba8 Mon Sep 17 00:00:00 2001 From: dzevad-cyber Date: Fri, 30 Jan 2026 16:07:41 +0100 Subject: [PATCH 05/11] chore: remove bg-pos-y-length image, remove example 3 --- .../background-position-y.md | 15 +++++++-------- media/background-position-y-length.png | Bin 4700 -> 0 bytes 2 files changed, 7 insertions(+), 8 deletions(-) delete mode 100644 media/background-position-y-length.png diff --git a/content/css/concepts/background/terms/background-position-y/background-position-y.md b/content/css/concepts/background/terms/background-position-y/background-position-y.md index 3812438c902..8a63e44d108 100644 --- a/content/css/concepts/background/terms/background-position-y/background-position-y.md +++ b/content/css/concepts/background/terms/background-position-y/background-position-y.md @@ -19,8 +19,8 @@ CatalogContent: **Note:** This property will be overridden if `background` or `background-position` properties are applied after it. ```css -background-position-y: ; -background-position-y: ; +background-position-y: ; // single value +background-position-y: ; // mutltiple values ``` @@ -106,7 +106,7 @@ The resulting output of the code block above is: ## Example 3 -Set `background-position-y` using length: +Set `background-position-y` using multiple values: ```css .img { @@ -118,20 +118,19 @@ Set `background-position-y` using length: } .img.top { - background-position-y: 1cm; + background-position-y: bottom 20%; } .img.center { - background-position-y: 5rem; + background-position-y: bottom 7rem; } .img.bottom { - background-position-y: 7em; + background-position-y: bottom 2cm; } ``` The resulting output of the code block above is: -![Background-position-y-percentages](../../../../../../media//background-position-y-length.png) - +![Background-position-y-multiple-values](../../../../../../media//background-position-y-multiple-values.png) diff --git a/media/background-position-y-length.png b/media/background-position-y-length.png deleted file mode 100644 index ef18080940e6c38aa7ed48963cb51041159b1e58..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4700 zcmbVQc|4SB8-7WmY$f|vh`vILB|B#lNtkR$LSh)%&&*_*5jjLPAt^OsB$TBQIkF{5 zNP|gXXe?Q#38BH1L440>Ii0@scb-39=z31UJ7J}=g*Fz8_XnD}g z4uZHZfY1GW+~8Wq{j?VRS%ZdII`HxF(S~f_fPbYh2b?kX!9JL<6DV&885A7ot&a9W zd3y(;eSL7g5_*aFbN|4^Ij8-{BIT+E-}s=_iNQ?t5ZgU7c6N=ayU4efFFN)*3BwL8k0d z=bU={HR`o)%~XU6LwWYInucpT2J1fG&#p~v&p2tIt1ALQrmFH?qF|#}^N|qr$9|(V z&`r57xY4iB>o}Qd^6j;k0Gvlk1PLdSl zjiq-u>~P#8ectSOj+K>_SWc<)T|<2XgJXL*7x~0SPchDYddER!yFE7!3r#Dy}zqq!i@lf@_EgAc{v(pUS-b?d>fb%Gs zZy+`25-T2Xmb9i=W#Uy#im7e_4@^Cxx<^~!c?nXqQ!xgPcWVG}?)?eL(8HmE8+c=MDBP3rkpV&`+~xxvGgDuZ#LT&m8$QJ(zAYJlu${2p%L} zzpfiGlbd(6VeQu^zQ4zSWtTjBxHQ_5+TY(_czbx3JzP0VQ-{M@9 zMf_S`dEfVURueZ^x(6O?t-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D0mF3e}lwW5pUvP()tiQqGtRv^4e+t3U$E2hrCX;EAEMHzxK|{f`A+~Y6*ez|MyO6>w#UMHfM-u5RjNh}`eu%7i>t7~dNmLn#*NubpD zw*q)etE+DuRDMuVu}!rKGxoBl$JtQc1pW4+h+-C{E|NV1W+(dOt@)^DnWOxpRY+*} z5oVO#h@3AN9zhq9e7;)!Md1-Q8XI_67e~O@>oMFzO~4QC!s8n~9q|Fh4Z0xZkZ4^I zaz7Huc=zrdP@juo9)PU&d?(%ueFQorvCAEBAE>WY`{PrR7KBc;ex^7qu3^Z$ZJmba zHaBIF_EMth&U@v){{9=z!tCwsf4%1}2D?ilsjI2oy?5_ef%|wbXM^=Swl~B&a=WO&$BR?6cJ-vzj&p%%<4ZNF+=Xs*nEqeV>UPhLXs|C@N zhyy!!?5_)Sb?~3x_-6N`zV9}SGqLO?Y=%AcER8?RJN12+kNIbK?)yt#IYHf>?`;%Q zTU&elQDkZOYrmC`eKgu4#bm|VP?8h}Y{*RwFl=gSg0}T|;1%x=`q2G&T=a zlD`N8h86H|oxV8UttNEx>3LCYib9(W(G+|c4odVb&s$U#z(rj{1L%VM=Z%&|i;<6f zwWO1qfsP-iw0216BYipAd`jiRcU`!w`eL*_aO(P5^q140Qh71LjDvx>SNZ7SGS~Px z!x)aw(&_n+5>d3}jq|FV0v724a;}TVvo>L=BE(Gc|~;68z?0!5Q|iuAk2Upz!V~ Date: Fri, 30 Jan 2026 16:08:31 +0100 Subject: [PATCH 06/11] chore: remove code comments --- .../terms/background-position-y/background-position-y.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/css/concepts/background/terms/background-position-y/background-position-y.md b/content/css/concepts/background/terms/background-position-y/background-position-y.md index 8a63e44d108..4230fd530f8 100644 --- a/content/css/concepts/background/terms/background-position-y/background-position-y.md +++ b/content/css/concepts/background/terms/background-position-y/background-position-y.md @@ -19,8 +19,8 @@ CatalogContent: **Note:** This property will be overridden if `background` or `background-position` properties are applied after it. ```css -background-position-y: ; // single value -background-position-y: ; // mutltiple values +background-position-y: ; +background-position-y: ; ``` From a60bf244e848c9aee1a9fd506c1daf071fd5353a Mon Sep 17 00:00:00 2001 From: dzevad-cyber Date: Fri, 30 Jan 2026 16:14:38 +0100 Subject: [PATCH 07/11] refactor: text formatting --- .../terms/background-position-y/background-position-y.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/content/css/concepts/background/terms/background-position-y/background-position-y.md b/content/css/concepts/background/terms/background-position-y/background-position-y.md index 4230fd530f8..48ff2b55149 100644 --- a/content/css/concepts/background/terms/background-position-y/background-position-y.md +++ b/content/css/concepts/background/terms/background-position-y/background-position-y.md @@ -36,9 +36,8 @@ where `` can be one of the following: - `100%`: bottom edge of the background image is aligned with bottom edge of the container - Length values - `10px` `5cm` `2rem` `2em`: top edge of the background image is moved from top of the container -- Multiple values -and `direction` can be one of the following +and `` can be one of the following - `top`: move from top, default direction - `bottom`: move from bottom From 3485977a12b9b762f0e514c18048d467d45d00d1 Mon Sep 17 00:00:00 2001 From: dzevad-cyber Date: Fri, 30 Jan 2026 16:23:10 +0100 Subject: [PATCH 08/11] chore: format document --- .../background-position-y.md | 39 +++++++++---------- 1 file changed, 18 insertions(+), 21 deletions(-) diff --git a/content/css/concepts/background/terms/background-position-y/background-position-y.md b/content/css/concepts/background/terms/background-position-y/background-position-y.md index 48ff2b55149..3b082b942ef 100644 --- a/content/css/concepts/background/terms/background-position-y/background-position-y.md +++ b/content/css/concepts/background/terms/background-position-y/background-position-y.md @@ -19,9 +19,8 @@ CatalogContent: **Note:** This property will be overridden if `background` or `background-position` properties are applied after it. ```css -background-position-y: ; +background-position-y: ; background-position-y: ; - ``` where `` can be one of the following: @@ -38,9 +37,9 @@ where `` can be one of the following: - `10px` `5cm` `2rem` `2em`: top edge of the background image is moved from top of the container and `` can be one of the following - - `top`: move from top, default direction - - `bottom`: move from bottom +- `top`: move from top, default direction +- `bottom`: move from bottom ## Example 1 @@ -51,27 +50,26 @@ Set `background-position-y` using keywords: border: 2px dashed black; width: 200px; height: 200px; - background-image: url("./assets/box.png"); + background-image: url('./assets/box.png'); background-repeat: no-repeat; } .img.top { - background-position-y: top; + background-position-y: top; } .img.center { - background-position-y: center; + background-position-y: center; } .img.bottom { - background-position-y: bottom; + background-position-y: bottom; } - ``` The resulting output of the code block above is: -![Background-position-y-keywords](../../../../../../media//background-position-y-keywords.png) +![Background-position-y-keywords](../../../../../../media//background-position-y-keywords.png) ## Example 2 @@ -82,26 +80,26 @@ Set `background-position-y` using percentages: border: 2px dashed black; width: 200px; height: 200px; - background-image: url("./assets/box.png"); + background-image: url('./assets/box.png'); background-repeat: no-repeat; } .img.top { - background-position-y: 0%; + background-position-y: 0%; } .img.center { - background-position-y: 50%; + background-position-y: 50%; } .img.bottom { - background-position-y: 100%; + background-position-y: 100%; } ``` The resulting output of the code block above is: -![Background-position-y-percentages](../../../../../../media//background-position-y-keywords.png) +![Background-position-y-percentages](../../../../../../media//background-position-y-keywords.png) ## Example 3 @@ -112,24 +110,23 @@ Set `background-position-y` using multiple values: border: 2px dashed black; width: 200px; height: 200px; - background-image: url("./assets/box.png"); + background-image: url('./assets/box.png'); background-repeat: no-repeat; } .img.top { - background-position-y: bottom 20%; + background-position-y: bottom 20%; } .img.center { - background-position-y: bottom 7rem; + background-position-y: bottom 7rem; } .img.bottom { - background-position-y: bottom 2cm; + background-position-y: bottom 2cm; } ``` The resulting output of the code block above is: -![Background-position-y-multiple-values](../../../../../../media//background-position-y-multiple-values.png) - +![Background-position-y-multiple-values](../../../../../../media//background-position-y-multiple-values.png) From 762116aad43a352eb03abcdc48966dd206c646a1 Mon Sep 17 00:00:00 2001 From: dzevad-cyber Date: Fri, 30 Jan 2026 16:34:21 +0100 Subject: [PATCH 09/11] chore: remove redundant dot from description text --- .../terms/background-position-y/background-position-y.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/css/concepts/background/terms/background-position-y/background-position-y.md b/content/css/concepts/background/terms/background-position-y/background-position-y.md index 3b082b942ef..d18911b5646 100644 --- a/content/css/concepts/background/terms/background-position-y/background-position-y.md +++ b/content/css/concepts/background/terms/background-position-y/background-position-y.md @@ -1,6 +1,6 @@ --- Title: 'background-position-y' -Description: 'Sets the initial vertical position for every background image. The position is relative to the position set by background-origin property..' +Description: 'Sets the initial vertical position for every background image. The position is relative to the position set by background-origin property.' Subjects: - 'Web Development' - 'Web Design' From 4ffc9fb99af7533ee92eb9ca92062a8e1cc410f5 Mon Sep 17 00:00:00 2001 From: Mamta Wardhani Date: Tue, 3 Feb 2026 10:16:25 +0530 Subject: [PATCH 10/11] Revise background-position-y documentation Updated the description and examples for background-position-y. --- .../background-position-y.md | 77 +++++-------------- 1 file changed, 20 insertions(+), 57 deletions(-) diff --git a/content/css/concepts/background/terms/background-position-y/background-position-y.md b/content/css/concepts/background/terms/background-position-y/background-position-y.md index d18911b5646..54fdc746b3b 100644 --- a/content/css/concepts/background/terms/background-position-y/background-position-y.md +++ b/content/css/concepts/background/terms/background-position-y/background-position-y.md @@ -1,9 +1,9 @@ --- Title: 'background-position-y' -Description: 'Sets the initial vertical position for every background image. The position is relative to the position set by background-origin property.' +Description: 'Sets the vertical position of a background image inside an element.' Subjects: - - 'Web Development' - 'Web Design' + - 'Web Development' Tags: - 'Background' - 'Box Model' @@ -11,39 +11,32 @@ Tags: CatalogContent: - 'learn-css' - 'paths/front-end-engineer-career-path' - - 'paths/full-stack-engineer-career-path' --- -## Syntax +In CSS, **`background-position-y`** controls how far up or down the background image is placed inside an element, letting you adjust its vertical alignment without affecting the horizontal position. -**Note:** This property will be overridden if `background` or `background-position` properties are applied after it. +## Syntax -```css +```pseudo background-position-y: ; -background-position-y: ; ``` -where `` can be one of the following: +**Parameters:** -- Keywords values - - `top`: aligns top edge of the background image with the top edge of the container - - `center`: aligns center of the background image with the center of the container - - `bottom`: aligns the bottom of the background image with the bottom edge of the container -- Percentage values: - - `0%`: top edge of the background image is aligned with top edge of the container - - `50%%`: centers the background image inside a container - - `100%`: bottom edge of the background image is aligned with bottom edge of the container -- Length values - - `10px` `5cm` `2rem` `2em`: top edge of the background image is moved from top of the container +- `value`: Specifies the vertical position of the background image. Common values include: + - `top`, `center`, `bottom` + - Length values like `10px`, `2rem` + - Percentage values like `50%` -and `` can be one of the following +**Return value:** -- `top`: move from top, default direction -- `bottom`: move from bottom +- None. This property sets a style rule and does not return a value + +**Note:** This property will be overridden if `background` or `background-position` properties are applied after it. -## Example 1 +## Example 1: Keyword-based vertical positioning -Set `background-position-y` using keywords: +In this example, `background-position-y` uses keywords to align the background image at the top, center, or bottom of the element while keeping the horizontal position unchanged: ```css .img { @@ -69,41 +62,11 @@ Set `background-position-y` using keywords: The resulting output of the code block above is: -![Background-position-y-keywords](../../../../../../media//background-position-y-keywords.png) - -## Example 2 - -Set `background-position-y` using percentages: - -```css -.img { - border: 2px dashed black; - width: 200px; - height: 200px; - background-image: url('./assets/box.png'); - background-repeat: no-repeat; -} - -.img.top { - background-position-y: 0%; -} - -.img.center { - background-position-y: 50%; -} - -.img.bottom { - background-position-y: 100%; -} -``` - -The resulting output of the code block above is: - -![Background-position-y-percentages](../../../../../../media//background-position-y-keywords.png) +![Background-position-y-keywords](https://raw.githubusercontent.com/Codecademy/docs/main/media/background-position-y-keywords.png) -## Example 3 +## Example 2: Value-based vertical positioning -Set `background-position-y` using multiple values: +In this example, `background-position-y` uses percentage and length values to precisely control how far down the background image is positioned inside the element: ```css .img { @@ -129,4 +92,4 @@ Set `background-position-y` using multiple values: The resulting output of the code block above is: -![Background-position-y-multiple-values](../../../../../../media//background-position-y-multiple-values.png) +![Background-position-y-multiple-values](https://raw.githubusercontent.com/Codecademy/docs/main/media/background-position-y-multiple-values.png) From 91616c5b9c058e2fc10d7506ec441266c710be45 Mon Sep 17 00:00:00 2001 From: Mamta Wardhani Date: Tue, 3 Feb 2026 10:19:31 +0530 Subject: [PATCH 11/11] Fix note formatting in background-position-y.md Corrected formatting of the note regarding property overrides. --- .../terms/background-position-y/background-position-y.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/css/concepts/background/terms/background-position-y/background-position-y.md b/content/css/concepts/background/terms/background-position-y/background-position-y.md index 54fdc746b3b..a8ecc7702b8 100644 --- a/content/css/concepts/background/terms/background-position-y/background-position-y.md +++ b/content/css/concepts/background/terms/background-position-y/background-position-y.md @@ -32,7 +32,7 @@ background-position-y: ; - None. This property sets a style rule and does not return a value -**Note:** This property will be overridden if `background` or `background-position` properties are applied after it. +> **Note:** This property will be overridden if `background` or `background-position` properties are applied after it. ## Example 1: Keyword-based vertical positioning