What is "Positioning" in CSS?! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is "Positioning" in CSS?!

I can't understand positioning in CSS! Is there anyone who explaint it in easy words?!

7th Feb 2018, 6:03 AM
Ahmad Heidari
Ahmad Heidari - avatar
4 Answers
+ 7
you can visit yo the following link for detail info https://www.w3schools.com/css/css_positioning.asp
7th Feb 2018, 7:09 AM
Msaligs
Msaligs - avatar
+ 7
position is a CSS' keyword that used to set the type of the position of an element. to adjust the position you must use top/left/right/bottom keyword. I will post a code about CSS' positioning
7th Feb 2018, 7:12 AM
Amethyst Animion
Amethyst Animion - avatar
+ 7
Sololearn courses about positioning https://www.sololearn.com/learn/CSS/1114/?ref=app An example code about CSS positioning https://code.sololearn.com/W2BI5PB4hnln/?ref=app
7th Feb 2018, 7:53 AM
Amethyst Animion
Amethyst Animion - avatar
+ 6
Html is built by blocks and lines. all elements are relative by default and it are displayed one by another. With CSS you can change the position of any element by changeing it CSS property "position" to :absolute and defining the x and y coordinates on the screen, or using margin-top, margin-left, margin-right, marging bottome and so on. Try it in the simple code. position: absolute; //relative by default.
7th Feb 2018, 6:13 AM
Vitaliy Angelov (Rostov-on-Don)
Vitaliy Angelov (Rostov-on-Don) - avatar