Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Why don't more sites use max-width: 100% wrapper? Reply To: Why don't more sites use max-width: 100% wrapper?

#156430
TheDoc
Member

max-width: 100%; doesn’t make any sense. A block element, by default, is going to have a width of 100% so setting a max-width of the same wouldn’t actually do anything.

What you generally find is something like this:

.element {
    width: 100%; /* or not here at all, since block elements have this by default */
    max-width: 1400px; /* or some other value that the design looks best at */
}