I am completely stuck when it comes to making this :hover tag work for these images. Along with that, I'm sure I have a million other mistakes within the code. The bottom portion was mainly done by my coding teacher. (The code below is after a good amount of tinkering and is far from neat and/or perfect)
body {
background-image: url(sprigs-and-berries-of-mountain-ash-on-a-green-background-a-pattern-of-nature-with-black-rowan-berries-on-the-background-seamless-background-free-vector.jpg);
overflow-x: hidden;
}
header {
text-align: center;
}
.logo {
text-align: center;
}
.large-image {
width: 50%;
border: 5px solid;
display: none;
}
.small-image {
width: 44%;
border: 1px solid;
}
.small-image:hover .large-image {
display: inherit;
}
<header>
<img class="logo" src="5c2e2e57a97bc40295eb8385.png" alt="MSM-LOGO">
<h1 class="logo">Plant Island</h1>
</header>
<a>
<img id="1" class="small-image" src="Mammott.png" alt="Mammott">
<img class="large-image" src="Mammott.png" alt="Mammott">
</a>
<img class="large-image" src="Noggin.png" alt="Noggin">
<img class="small-image" src="Noggin.png" alt="Noggin">
I tried to get my large-image to appear when the small-image was hovered upon. I expected something to be wrong, but this has been an enormous road block for the past few weeks