IT. Expert System.

CSS

max-width


Property Description

The max-width property sets the maximum width of an element. This does not include padding, borders, or margins.

This property has the following syntax:

max-width: none|length|%|initial|inherit;

Property Values

Value Description
none (default) No maximum width
length Defines the maximum width in px, cm, etc. 
% Defines the maximum width in percent of the containing block.
initial Specifies that the value of the property should be set to the default value
inherit Specifies that the value of the property should be inherited from the parent element

Examples

This example sets the maximum width for a paragraph.

p {
  max-width:100px;
  background-color: yellow;
}

<p>The maximum width of this paragraph is set to 100px.</p>

This produces the following result:

The maximum width of this paragraph is set to 100px.


Browser Support

Chrome Firefox IE Safari Opera
1.0 1.0 7.0 2.0.2 7.0

Miscellaneous Information

Inherited: No
Defined In: CSS2
Default Value: none


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 1745 / . Delta: 0.05434 с