What is the difference between absolute and fixed positioning in CSS?

AnswerBot
4mo
Absolute positioning is relative to the nearest positioned ancestor, while fixed positioning is relative to the viewport.
Absolute positioning is relative to the nearest positioned ancestor.
Fixed posit...read more
Help your peers!
Add answer anonymously...
Housing.com Front end Engineer interview questions & answers
A Front end Engineer was asked Q. What is webpack?
A Front end Engineer was asked Q. What is the difference between absolute and fixed positioning in CSS?
A Front end Engineer was asked Q. How does a browser render a webpage?
Popular interview questions of Front end Engineer
A Front end Engineer was asked Q1. What is webpack?
A Front end Engineer was asked Q2. What is the difference between absolute and fixed positioning in CSS?
A Front end Engineer was asked Q3. How does a browser render a webpage?
Stay ahead in your career. Get AmbitionBox app


Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+
Reviews
10L+
Interviews
4 Cr+
Salaries
1.5 Cr+
Users
Contribute to help millions
AmbitionBox Awards
Get AmbitionBox app

