• # October 27, 2008 at 9:15 am

    is relative position better than absolute positioning?
    can u post in detail abt dis topic? nd help me in my course work? m unable to understand dese topic clearly, please could u post me dese dtails….

    # October 27, 2008 at 8:06 pm

    When you use absolute positioning, it takes the element outside of the normal flow of the document. This can come in pretty handy. If you a box, 250 pixels by 250 pixels, and you need to attach an image in the lower right corner – regardless of how much content is in the box there are a couple of different ways you can try and go about it, but the easiest, by-far, would be to just set the positioning of the parent container (the box) to relative, and then give the image a position of relative, bottom: 0, and right: 0.

    Look at this page, see the elements attached to the bottom of the page. That would be pretty difficult to accomplish trying to use floats and margins.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.