Quackit Logo

10GB Webmaster Package

Unique, quality digital content ready to be resold.

Includes:

  • Over 29,000 Ebooks
  • Over 7,000 Website templates
  • Over 11,000 Fonts
  • Over 39,000 Logos
  • Over 1,000 Cell Phone Games
  • Over 3,000 Cell Phone Images
  • Over 21,000 Ring Tones
  • ...and much more!
Get your 10GB webmaster package now!

CSS position

Print Version

Also see the full, alphabetical list of CSS properties


The CSS position property is used in positioning an element. It can be used in conjunction with the top, right, bottom and left properties to position an element where you want it.

Also see the float property.

Syntax: position: <value>
Possible Values:
  • static - The element flows as normal. The left and top properties don't take effect.
  • relative - The element is offset relative to it's normal position in the flow.
  • absolute - The element is positioned based on it's containing block. The element is taken out of the normal flow. Any subsequent elements will not be impacted - they will appear where they normally would even if the previous element was not offset.
  • fixed - Similar to absolute, but also doesn't move when scrolled.
  • inherit
Initial Value: static
Applies to: All elements except for generated content
Inherited: No
Media: Visual
Example:
div {
  position: fixed;
  top: 20px;
  left: 50px;
  }
Try it yourself! HTML Editor


Also see all CSS properties listed alphabetically


Enjoy this website?

  1. Link to this page (copy/paste into your own website or blog):
  2. Add this page to your favorite social bookmarks sites:
                     
  3. Add this page to your Favorites

Oh, and thank you for supporting Quackit!

FREE Hosting!

With every domain name you register with ZappyHost, you get FREE (ad supported) hosting.

PLUS you get:

  • FREE Website Builder
  • FREE Blog
  • FREE Starter Web Page
  • FREE Email Account
  • & much more! (Total value $123 for FREE!)
Get your FREE hosting today! >>