Hello! Help, please, with advice: I try using media queries to adjust the width of the header and content, but it does not work. I need that if the device screen is less than 1024 px, the fields are not shown, and the header and content occupy 100% of the screen, on widescreen monitors that the header and content occupy 53%, the rest, respectively, the fields. Prescribed, like, correctly:
@media screen and (max-width: 1024px) { #main { width: 100%; margin: 0; padding: 0; } #header { width: 100%; margin: 0; padding: 0; } } #header { background-image: url(../images/header.jpg); width: 53%; height: 239px; background-repeat: no-repeat; padding: 0px; margin: auto; border: 1px solid #CCC; } #main { width: 53%; min-height: 800px; height: auto; margin: auto; background-color: #F5F5F5; border: 1px solid #CCC; overflow: auto; font-family: serif; } Checked repeatedly on devices with a resolution of less than 1024 px - the rules do not work, fields still appear and content with a header occupies 53%, which results in a thin strip (. What am I doing wrong? Maybe media queries should not be recorded in the style file? How else can you realize the idea? I tried also max-device-width, it still does not work.