I am struggling with getting my media query to function properly on a school project. Despite carefully checking my code, I cannot figure out why it is not making the desired changes when viewed on a mobile device. If anyone has any suggestions or insights, I would greatly appreciate it. Below are the head section of my HTML and the corresponding CSS:
<head>
<title>Pacific Trails Resort</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">
<link href="pacific.css" rel="stylesheet">
<link href="pacificprint.css" rel="stylesheet" media="print">
</head>
@media only screen and (max-width: 1024px) {
body { margin: 0 ;
padding: 0 ;
background-image: none }
#wrapper { width: auto ;
min-width: 0 ;
margin: 0 ;
box-shadow: none }
h1 { margin: 0 }
nav { float: none ;
width: auto ;
padding: 0.5em }
nav li { display: inline-block }
nav a { padding: 1em }
main { padding: 1em ;
margin-left: 0 ;
font-size: 90% }
footer { margin: 0 }
}