Latest

recent

CSS max-width Property

Definition

The max-width property sets the maximum width of an element.
Inherited: No

JavaScript Syntax

CSS properties can also be dynamically changed with a JavaScript.
Scripting Syntax: object.style.maxWidth="10px"

Example

p
{
max-width: 500px
}

Possible Values

Value Description
none Default. Defines no limit on the maximum width allowed for the element
length Defines a maximum width for the element
% Defines the maximum width for the element in % of the containing block

Goto CSS3 and CSS2 complete reference
CSS max-width Property Reviewed by 1000sourcecodes on 22:06 Rating: 5
Powered by Blogger.