sushil bharwani sushil bharwani - 2 years ago 158
CSS Question

What is the meaning of `auto` value in a CSS property.

What is the meaning of

value of a CSS property. What happens when value of a CSS property is set to

Answer Source

The value of said property is adjusted automatically according to the content or the context of the element.

For example, a block-level element with height: auto will grow taller as it contains more text. For another example, a block element with margin: 0 auto will have the left and right margins increased until it becomes centered along the y-axis of the viewport.

It really depends on the property you give the value to, different properties behave differently depending on the content and context.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download