Front End Programmer Question:
Download Questions PDF

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

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.

Download Front End Developer Interview Questions And Answers PDF

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?