HTML CSS SQL Meta tag Generator ScrollBar design Generator Encode Decode images

CSS Basics

Introduction Syntax Selectors Attribute Selectors Specificity Combinators !important Comments Colors

CSS Need to Know

Box Model Pseudo-class Pseudo-element Inline-block Math Functions Max and Min Opacity Outline Overflow Z-index Float

Most used

Align Backgrounds Borders Text Units Padding Margins Position Tables Display Fonts Lists Height and Width

CSS Reference

CSS Properties reference CSS Pseudo-Classes reference CSS Pseudo-Elements reference CSS Selector reference

CSS offset-position

The CSS offset-position property specifies the positioning of an element relative to its normal position in the document flow. This property is used to offset an element from its normal position while still preserving the space it would have occupied in the document flow.

The offset-position property can take one of the following values:

Let's see some examples of how the offset-position property works:

Result:

Example 1: offset-position: relative;

This is a relative positioned element.

In this example, the element is offset from its normal position using the offset-position: relative; property. The top: 20px; and left: 50px; properties specify the offset values for the element.

Result:

Example 2: offset-position: absolute;

This is an absolutely positioned element.

In this example, the element is removed from the normal document flow and positioned relative to its nearest positioned ancestor using the offset-position: absolute; property.

Experiment with different values for the offset-position property to see how it affects the positioning of elements on your webpage.

.autobots{
   transform: translate3d();
}