docs icon indicating copy to clipboard operation
docs copied to clipboard

added css position: relative

Open ozearkhan opened this issue 1 year ago • 4 comments


Description

This PR adds a new term entry for "Relative Position" in CSS. The entry is located under content/css/concepts/position/terms/relative/relative.md. It explains what relative positioning is, how it works, and includes both the syntax and practical examples to show how you can use it in your CSS.

The first example is a simple demo of how to move elements around using relative positioning. The second example gets a little more advanced, covering things like z-index and percentage-based positioning. I’ve also added two images in themedia/folder to give a visual representation of what the examples look like when rendered.

Issue Solved

Closes #5444

Type of Change

  • New Term for Existing Concept Entry

Checklist

  • [x] All writings are my own.
  • [x] My entry follows the Codecademy Docs style guide.
  • [x] My changes generate no new warnings.
  • [x] I have performed a self-review of my own writing and code.
  • [x] I have checked my entry and corrected any misspellings.
  • [x] I have made corresponding changes to the documentation if needed.
  • [x] I have confirmed my changes are not being pushed from my forked main branch.
  • [x] I have confirmed that I'm pushing from a new branch named after the changes I'm making.
  • [x] I have linked any issues that are relevant to this PR in the Issues Solved section.

ozearkhan avatar Oct 11 '24 11:10 ozearkhan