freeCodeCamp/guide/english/css/properties/position-property/index.md

21 lines
637 B
Markdown
Raw Normal View History

2018-10-12 19:37:13 +00:00
---
title: Position Property
---
## Position Property
The position property specifies the type of positioning method used for an element. It has five keyword values:
```css
.static { position: static; }
.relative { position: relative; }
.sticky { position: sticky; }
.fixed { position: fixed; }
.absolute { position: absolute; }
```
#### More Information:
Docs: <a href='https://developer.mozilla.org/en-US/docs/Web/CSS/position' target='_blank' rel='nofollow'>MDN</a>
Browser Support: <a href='http://caniuse.com/#search=position' target='_blank' rel='nofollow'>caniuse</a>