Shaqpad
Shaqpad

Reputation: 207

CSS Width Property

What does this type of WIDTH declaration means? (See Source HERE)

#content {
    float: left;
    min-height: 1px;
    width: 71.1702%;
}

Upvotes: 0

Views: 55

Answers (1)

Tim Roberts
Tim Roberts

Reputation: 1170

It is saying that the div #content will be 71.1702% of it's parent's width.

example:

If parent's width is 100% of screen, then #content will be 71.1702% of screen.

If parent's width is 400px, then #content will be 71.1702% of 400px.

Upvotes: 2

Related Questions