As a newcomer to HTML and CSS, I've been working on creating an eCommerce page. The header is fixed, but I've encountered an issue where the image overflows on it when scrolling down the page. If my approach seems odd or unconventional, I would appreciate any guidance or suggestions on how to improve it. Here's a screenshot of the issue:
https://i.sstatic.net/eKy4V.png
Below is the code snippet attached in this post.
* {
margin: 0;
padding: 0;
}
#header {
width: 100%;
height: 60px;
background-color: #090;
position: fixed;
}
#wrapper {
width: 80%;
background-color: #F7F4F4;
margin: auto;
}
#main1 {
...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
...
</html>