After completing a basic web development course, I decided to create my first homepage. While I am satisfied with how it looks on a PC or laptop, the layout gets messy on mobile devices. I tried using
<meta name="viewport" content="width=device-width, initial-scale=1">
as a solution but it didn't work. Removing unnecessary height/width elements from the article/nav bar only made things worse.
The overflow issue on mobile:
https://i.sstatic.net/te0nR.jpg
You can view the site at https://mspace.w3spaces.com. Here's the code for the index page (I will eventually move the CSS styles to a separate file):
* {
box-sizing: border-box;
}
html, body {
margin: 0;
padding: 0;
height: 100%;
min-height: 100%;
max-height: 100%;
}
.bg-image {
opacity: 0.5;
}
body {
font-family: Arial, Helvetica, sans-serif;
}
/* More CSS code goes here */
footer {
background-color: #010203;
padding: 25px;
text-align: center;
color: #19aef6;
overflow: hidden;
}
/* Additional CSS code */
a:hover {
color: white;
background-color: transparent;
text-decoration: underline;
}
If anyone could provide some guidance specific to my site, I would greatly appreciate it. Thank you!