Front End Programmer Question:

Explain the difference between static, fixed, absolute and relative positioning?

Front End Developer Interview Question
Front End Developer Interview Question

Answer:

static is the default.

fixed is positioned relative to the browser.

absolute is positioned relative to its parent or ancestor element.

relative is positioned relative to normal positioning/the item itself. Used alone it accomplishes nothing.


Previous QuestionNext Question
Tell me what are some of the online tools and resources you use when you have a problem? Where do you go to ask questions?Do you know what is a sprite? How is it applied using CSS? What is the benefit?