+ 1

What is the difference between using margins and position property in order to distribute html elements ?

I learnt html and css , I know how to use position property and margins to locate an html element in the page , but is any differences between these two css properties ? I want an example of a case in which should I use position instead of margin or the opposite !

29th Oct 2018, 10:03 PM
Hassan Sahlaoui
Hassan Sahlaoui - avatar
4 odpowiedzi
+ 5
use margins to create space around elements use position for positioning your element
29th Oct 2018, 10:39 PM
D_Stark
D_Stark - avatar
+ 5
Hassan Sahlaoui your welcome good luck 😉👍
29th Oct 2018, 11:01 PM
D_Stark
D_Stark - avatar
+ 2
Thank you brother , any advices I want to improve my skills more and more ?
29th Oct 2018, 11:02 PM
Hassan Sahlaoui
Hassan Sahlaoui - avatar
+ 1
Thank you for your quick answer D_Stark !
29th Oct 2018, 10:42 PM
Hassan Sahlaoui
Hassan Sahlaoui - avatar