|
Back to CSScss Lesson 3

Layouts

Positioning elements on the page.

Position Property

The `position` property specifies the type of positioning method used for an element (static, relative, fixed, absolute, sticky).

css
.relative {
  position: relative;
  left: 30px;
  border: 3px solid #73AD21;
}

Try it yourself:

HTML
CSS
Result