Welcome ðŸŽ‰

logo

ReactLMS

Search
Light Mode
Contact Us

2 min to read

Contact us

No results for your search.
Sorry, an unexpected error occurred

Concept


position is a property in CSS used to change the layout structure of a tag, usually applied in the following two forms:

🌱
When the tag is in absolute form, we can use CSS properties like top, bottom, left, right to move the tag as desired within the relative area.


How to use


example

HTML

<div class='result'>
  <span>1</span>
</div>







CSS

.result {
  position : relative;
  height: 200px;
  background: lightcoral !important;
}

.result .box {
  background: pink;
  position: absolute;
  width: 50px;
  height: 50px;
  right: 0px;
  top: 30px;
}







Result

1



Read more
On This Page