From 4758090219289b2a0bff14ac5fba89b9525662f0 Mon Sep 17 00:00:00 2001 From: Ece <43401712+ecemac@users.noreply.github.com> Date: Fri, 16 Nov 2018 12:39:51 +0300 Subject: [PATCH] Add more info about position:relative and absolute (#21871) * Add more info about position:relative and absolute * Fixed formatting and typos --- guide/english/css/css-position/index.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/guide/english/css/css-position/index.md b/guide/english/css/css-position/index.md index fcca9a598f..7097bf2a12 100644 --- a/guide/english/css/css-position/index.md +++ b/guide/english/css/css-position/index.md @@ -12,6 +12,9 @@ The position property specifies the type of positioning method used for an eleme .fixed { position: fixed; } .absolute { position: absolute; } ``` +Elements can be literally positioned by getting `top`, `right`, `bottom` and `left` values with the `position` property. Relative positioning will position the element according to the viewport while absolute positioning will position the element according to the parent element with the `position:relative` property. + +It's important to know that an element with `position:relative` property will still preserve the space it takes at its original position when it is moved, however, an element with `position:absolute` property will not. ### More Information: