23 lines
835 B
Markdown
23 lines
835 B
Markdown
|
---
|
||
|
title: CSS Position
|
||
|
---
|
||
|
## CSS Position
|
||
|
|
||
|
The position property specifies the type of positioning method used for an element. It has 5 keyword values:
|
||
|
|
||
|
```css
|
||
|
.static { position: static; } // default value
|
||
|
.relative { position: relative; }
|
||
|
.sticky { position: sticky; }
|
||
|
.fixed { position: fixed; }
|
||
|
.absolute { position: absolute; }
|
||
|
```
|
||
|
|
||
|
### More Information:
|
||
|
|
||
|
MDN Documentation: <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>
|
||
|
|
||
|
YouTube: <a href='https://www.youtube.com/watch?v=kejG8G0dr5U' target='_blank' rel='nofollow'>Part1</a> | <a href='https://www.youtube.com/watch?v=Rf6zAP4YnZA' target='_blank' rel='nofollow'>Part2</a>
|