What are the difference between relative and absolute in CSS?

Question :

What are the difference between relative and absolute in CSS?

The main difference between relative and absolute is that “relative” is used for the Same tag in CSS and it means that if we write the left:10px then the padding will shift to 10px In the left while absolute is totally relative to the non-static parent. It means if we write Left:10px then the result will be 10px far from the left edge of the parent element.


CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad