Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Positioning

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #23475

    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….

    #50753
    Cotton
    Member

    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.

    http://www.fnacotton.com/tshirts/catFighter.php

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.