© Mikael Olsson 2019
Mikael OlssonCSS3 Quick Syntax Referencehttps://doi.org/10.1007/978-1-4842-4903-1_21

21. Positioning

Mikael Olsson1 
Hammarland, Finland

The positioning properties can change how and where elements are displayed. They enable very precise control over the web page layout.


Elements can be positioned in four different ways using the position property. An element with the position property set to anything but static is known as a positioned element.
position : static | relative | absolute | fixed
A positioned element can be moved with the top, left, right, and bottom properties, which can be used to position elements anywhere on the page and also to resize them horizontally and vertically. They allow both positive and negative ...

Get CSS3 Quick Syntax Reference: A Pocket Guide to the Cascading Style Sheets Language now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.