+ 2

Give some clear example for position absolute and relative..

what is mean by absolute and relative position give explanation and example..I'm search Google also don't get understood clearly..anybody give detailed explanation.. thanks in advance.

26th Sep 2017, 1:34 PM
vignesh waran
vignesh waran - avatar
2 Respostas
+ 2
position absolute, it's then positioned relative to its first positioned ancestor element and if something is relative it's means that its positioned relative to its normal position, ok? If you consider that every html tag has it's give default position, then you can position this default position with relative values.
26th Sep 2017, 6:30 PM
Christian Ståhl
Christian Ståhl - avatar
+ 1
Haven't done this yet quite new here but I think of "Absolute" (independent of elements movement) as in, holding a predefined value, or doesn't move or static positioning while "relative" is movable and is usually dependant on another elements movement to define it's position. Hope this thought brings some helps as you find more info.
27th Sep 2017, 1:15 AM
Joel Warner
Joel Warner - avatar