Answer the question
In order to leave comments, you need to log in
Can't set @media queries correctly?
Hello!
I studied the theory, everything seems to be clear ... but
I do the Layout from larger to smaller.
The styles look like this:
html, body{
width: 100%;
font-family: 'Open Sans Condensed', sans-serif;
font-size:100%/1.4;
}
{ тут идут стили для полной ширины экрана 1920px}
/* медиа-запросы */
@media (max-width: 1400px) { }
@media (max-width: 1200px) { }
@media (max-width: 1000px) { }
@media (max-width: 900px) { }
@media (max-width: 800px) {
body{ width: 800px; }
}
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=yes">
registered body{ width: 800px; }
Answer the question
In order to leave comments, you need to log in
Well, does no one really know? ... or no one has had this?
maybe you need to specify the width of the body in each request ?
well, like this:
html, body{
width: 100%;
font-family: 'Open Sans Condensed', sans-serif;
font-size:100%/1.4;
}
{ тут идут стили для полной ширины экрана 1920px}
/* медиа-запросы */
@media (max-width: 1400px) {
body { max-width:1400px}
}
@media (max-width: 1200px) {
body { max-width:1200px}
}
@media (max-width: 1000px) {
body { max-width:1000px}
}
@media (max-width: 900px) {
body { max-width:900px}
}
@media (max-width: 800px) {
body{ width: 800px; }
}
Maybe I forgot reset.css?
I can only recommend one article. Hope it helps.
you here
Is there an extension for Firefox in order to check the responsive design of only one site, using the proposed types of devices and special tools for a web programmer (I know such a User Agent Switcher extension that works in the entire browser, switching to mobile versions)?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question