Differentiate between absolute and relative in CSS. 

The main difference is that relative is used for the same tag in CSS. If we write right:20 px, then padding shifts 20 px in the right. Whereas absolute is relative to the non-static parent, i.e., if we write right:20 px, the result will be 20 px far from the right edge of the parent element.  


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *