CSS default position value

position:absolute?

Recently I was working on a problem where some DOM elements inherited the absolute position from their ancestors. Well this is pretty rare, but however it happens from time to time. If you’re wandering, as I was, how to disable this and to call the default property value just stop hesitating. The default property is static. So you can simply write:

#element_id {
   position:static;
}

Related posts:

  1. Scroll an IFRAME Content to a Predefined Position
  2. CSS sprites. Go beyond the limits with base64!
  3. jQuery CSS selectors. Change one or more CSS properties!
This entry was posted in css and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">