Home>

This is a 2-column layout homepage.
The footer is not displayed properly. What should I do? The code looks like this:
When the browser is shortened, it is displayed normally, but when the size is increased, it is not displayed normally.

<DOCTYPE html>
<html lang = "en">
<head>
    <meta charset = "UTF-8">
    <title>Practice</title>
    <link rel = "stylesheet" href = "css/reset.css">
    <link rel = "stylesheet" href = "css/slicknav.min.css">
    <link rel = "stylesheet" href = "https://use.fontawesome.com/releases/v5.6.4/css/all.css">
    <link rel = "stylesheet" href = "css/style.css">
    <meta name = "viewport" content = "width = device-width, initial-scale = 1.0">
</head>
<body>
    
        
             
        
        <header>
              
        </header>
        <nav>
            <ul>
                <li>Top</li>
                <li>Introduction</li>
                <li>Menu</li>
                <li>Contact</li>
            </ul>
        </nav>
        
            
                 Oh ah 
            </article>
            
                 Good 
                
                
            </aside>
        
        <footer>
            <p>UuUu</p>
        </footer>
    

    <script src = "js/jquery-3.4.1.min.js"></script>
    <script src = "js/jquery.slicknav.min.js"></script>
    <script src = "js/script.js"></script>
</body>
</html>
</DOCTYPE>
@ charset "utf-8";
* {
    margin: 0;
    padding: 0;
}
#wrapper {
    width: 100%;
    background-color: black;
    overflow: hidden;
}
/ * Back button on the page * /
#page_top {
  width: 80px;
  height: 80px;
  position: fixed;
  right: 0;
  bottom: 0;
  opacity: 0.6;
}
#page_top a {width: 80px;
  height: 80px;
  text-decoration: none;
}
#page_top a :: before {
  font-family: 'Font Awesome 5 Free';
  font-weight: 700;
  content: '\ f139';
  font-size: 60px;
  color: # 00c8c8;
}
@media screen and (max-width: 750px) {
    #page_top {
        width: 80px;
        height: 80px;
        position: fixed;
        right: 0;
        bottom: 0;
        opacity: 0.6;
    }
}
/* header */
header {
    width: 960px;
    background-color: antiquewhite;
    margin: 0 auto 0 auto;
}
header img {
}
@media screen and (max-width: 750px) {
    header img {
        width: 0;
        height: 0;
    }
}
/ * Set navigation area * /
nav {
    text-align: center;
    width: 960px;
    background-color: azure;
    margin: 0 auto 0 auto;
}
nav ul li {
    list-style: none;
    display: inline-block;
}
nav ul li a {
    text-align: center;
    text-decoration: none;
    width: 130px;
    line-height: 70px;
    overflow: hidden;
    font-size: 24px;
    font-weight: bold;
    color: black;
    background-color: aqua;
}
#menu {
    display: none;
}
nav ul li a: hover {
    background-color: black;
    color: white;
}
@media screen and (min-width: 750px) {
    #menu {
        display: block;
    }
    .slicknav_menu {
        display: none;
    }}
.slicknav_menu: before {
    width: 180px;
    height: 50px;
    float: left;
    background-image:;
    background-repeat: no-repeat;
    background-position: center left;
    background-size: 100%;
    content: "";
    margin: 0 0 0 19px;
}
.slicknav_menu {
    width: 100%;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 10000;
    background-color: # 280000;
}
/* Text */
#main {
    width: 960px;
    margin: 0 auto 0 auto;
    overflow: hidden;
}
article {
    width: 760px;
    background-color: beige;
    padding: 0 0 1000px 0;
    float: left;
}
article h1 {
    font-size: 100px;
}
@media screen and (max-width: 750px) {
    article {
        width: 100%;
        margin: 60px 0 0 0;
    }
}
/ * aside * /
aside {
    width: 200px;
    background-color: blanchedalmond;
    margin: 0;
    float: right;
}
aside img {
    display: inline-block;
    width: 200px;
}
@media screen and (max-width: 750px) {
    aside {
        width: 100%;
    }
    aside img {
        width: 27%;
}
/ * footer * /
footer {
    clear: both;
    width: 960px;
    margin: 0 auto;
    background-color: white;
}
footer p {
    font-size: 60px;
}
  • Answer # 1

    The media query part of

    asideis not closed, so I think the cause is that thefooterrelationship is also included.

    @ media screen and (max-width: 750px) {
      aside {
        width: 100%;
      }
      aside img {
        width: 27%;
      }
    }/* Missing this */

    The DOCTYPE iswith!at the beginning, and further, the end tag () Is not required.