-
Notifications
You must be signed in to change notification settings - Fork 4.4k
First version of the css background-position-x property markdown #8224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
First version of the css background-position-x property markdown #8224
Conversation
mamtawardhani
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @CaptainTech205, I've requested changes in this entry and also can you please attach the output image to this PR?
Let me know once the changes are done, thank you! 🚀
| --- | ||
| Title: CSS background-position-x | ||
| Description: Sets the inital horizontal position of a background image. | ||
| Subjects: | ||
| - CSS | ||
| - Web design | ||
| - Web Development | ||
| Tags: | ||
| - Layout | ||
| - Background | ||
| - HTML | ||
| CatalogContent: | ||
| - Learn CSS | ||
| - UX Designer | ||
| - Learn Intermediate CSS | ||
| - Front-End Engineer | ||
| - Full-Stack Engineer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please refer to tags, subjects and catalog content for the correct data. And all of them need to be enclosed in single quotes (' ')
| ```css | ||
| /* Keyword values */ | ||
| background-position-x: left; | ||
| background-position-x: right; | ||
| background-position-x: center; | ||
|
|
||
| /* Length and percentage values */ | ||
| background-position-x: 64px; | ||
| background-position-x: 25%; | ||
| background-position-x: 5em; | ||
| background-position-x: 1cm; | ||
|
|
||
| /* Global values */ | ||
| background-position-x: inherit; | ||
| background-position-x: initial; | ||
| background-position-x: revert; | ||
| background-position-x: revert-layer; | ||
| background-position-x: unset; | ||
| ``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be wrapped in a pseudo block and not a css block
And, also - we can shorten the syntax to:
background-position: value;
the values can actually be mentioned under the Parameters: section
| background-repeat: no-repeat; | ||
| background-position-x: center; | ||
| } | ||
| ``` No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The output image needs to added into the media folder
Description
Created a new directory "background-position-x" in codecademy_docs\content\css\concepts\background\terms and a new file within that directory called "background-position-x.md". The markdown file describes the CSS property background-position-x and shows syntax and example.
Issue Solved
Closes #8197
Type of Change
Checklist
mainbranch.Issues Solvedsection.