Beginner here!
I am struggling with a task. It is requested to add one div ID with a unique name "div=heroimage" to all three different images on three different pages. However, they are in the same location on each page.
CSS Home, second page and third
#resort
{
height: 200px;
background-image: url(resort.jpg);
background-size: 100% 100%;
background-repeat: no-repeat;
}
#hotel
{
height: 200px;
background-image: url(hotel.jpg);
background-size: 100% 100%;
background-repeat: no-repeat;
}
#casa
{
height: 200px;
background-image: url(casa.jpg);
background-size: 100% 100%;
background-repeat: no-repeat;
}
The other two are identical just with the ID name different and title. If I change all the three with "div=heroimage" what would be the best way to do it?