What is the difference between position : sticky and position : fixed ?

Answer Posted / hrpynux@gmail.com

Fixed position will not occupy any space in the body, so the next element(eg: an image) will be behind the fixed element. sticky position occupies the space, so the next element will not be hidden behind it.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are cascading style sheets?

371


How comments can be added in CSS?

365


What do you mean by dialog box?

343


Is flexbox part of css3?

344


Explain how can you integrate CSS file to your webpage?

399






What are the different font attributes?

332


What is the used of !important?

351


What does css mean?

314


What is the current version of css?

343


What is offset () top?

348


What is ‘important’ declaration used in css?

350


What is clearfix?

325


What are css attributes?

428


Why is css needed?

358


How do you make a style sheet?

375