When you're positioning your divs in css you have to decide whether you want them to static/fixed or bulletproof and scalable (i.e. floats). It's always best to err on the side of scalable/relative positioning, but what if you don't know the difference? Well I'm here to tell you.
An absolute position, is also a fixed position. Meaning the div is in one set position on the page. It won't move from that spot. Problems arise when an absolute div is being displayed on different browsers (every browser displays a page a little differently) or when it's viewed on a different screen, such as a mobile device. That's why relative positioning is the way to go.
Relative Positioning means a div is positioned relative to what is around it, thus making it scalable and making it play nice with other content on the page and on different browsers and screens.
No comments:
Post a Comment