InterviewSolution
| 1. |
What Is The Difference Between Absolute Positioning And Relative Positioning In Css? |
|
Answer» ABSOLUTE positioning:-Which GIVES authors GREATER control over how document elements are DISPLAYED. Specifying an element’s position as absolute removes the element from the normal FLOW of elements on the page, instead positioning it according to the distance from the top, left, right or bottom. Relative positioning:- In which elements are positioned relative to other elements.Relative positioning keeps elements in the general flow of elements on the page,so positioning is relative to other elements in the flow. Absolute positioning:-Which gives authors greater control over how document elements are displayed. Specifying an element’s position as absolute removes the element from the normal flow of elements on the page, instead positioning it according to the distance from the top, left, right or bottom. Relative positioning:- In which elements are positioned relative to other elements.Relative positioning keeps elements in the general flow of elements on the page,so positioning is relative to other elements in the flow. |
|