Jump to content

Relative Positioning


chises

Recommended Posts

I have a "simple" question about css and positioning:i need to position a img element relative. But i got 1 problem about that: the problem is bold in the definition: Relative PositioningA relative positioned element is positioned relative to its normal position.The content of relatively positioned elements can be moved and overlap other elements, but the reserved space for the element is still preserved in the normal flow. Is there a possiblity to position a img element relative to an other that his space is not preserved? Sorry for my bad english. Thank you for your help!

Link to comment
Share on other sites

Not relative to its original position, but if an ancestor element has relative, absolute or fixed position then the element will be positioned relative to the top left corner of the ancestor.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...