• # June 16, 2008 at 8:27 pm

    Why does one need to use a relative positioned div inorder to place an absolute positioned element. Why not just use padding and margins to place whatever you are placing?

    # June 17, 2008 at 9:20 am

    This reply has been reported for inappropriate content.

    Margin and padding are used to position objects that are still "in the flow" of the document. This means that their position will still affect other page elements on the page. By using absolute positioning, it takes that element "out of the flow" so that it can be placed anywhere regardless of where other object lay.

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

You must be logged in to reply to this topic.