CSS media queries and element widths

Does the width indicated in multimedia queries mean the size of the division screen, or is it the internal width of the browser on the mobile device.

If I specify an element width that is the same as min-widththat defined in the media request, will the horizontal scrollbar appear at some point?

For instance:

@media screen and (min-width: 460px) and (max-width: 800px){

    .wrapper{
        width: 460px;
    }
}

If this is not the case, should there be a maximum width .wrapperto avoid the scrollbar?

+5
source share
1 answer

Consistent with w3c width in media queries

The media width function describes the width of the target display area of ​​the output device.

For the screen, this will be the width of the browser window.

device-width, .

W3c: http://www.w3.org/TR/css3-mediaqueries/#width

+1

All Articles