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



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

Answer / 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

More CSS Cascading Style Sheets Interview Questions

Explain the rule set in CSS.

1 Answers  


What is the use of sprites in css?

0 Answers  


Can you add multiple classes to an element?

0 Answers  


List out css3 modules?

0 Answers  


What is cascadetype detach?

0 Answers  






What will this piece of css code do to an element? .container { margin: 0 auto; }

0 Answers  


What is a strategy cascade?

0 Answers  


What is font-family apple-system ?

1 Answers  


How can you create a css3 property for each corner?

0 Answers  


What are css functions?

0 Answers  


How can the dimension be defined of an element ?

0 Answers  


Is flexbox responsive?

0 Answers  


Categories