Hi everyone. Would you mind giving me some feedback on this project I’ve completed. I was having trouble with the H1 element and getting the text to overlay on the picture. I’m also having trouble getting the picture I downloaded for H1 to display. If I use the “background-image: url()” and pull it from Codecademy it works ok, but doesn’t seem to work from the “images” folder I set up. Thanks for your help!
HTML:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dasmoto</title>
<link rel="stylesheet" href="CSS/style.css">
</head>
<body>
<!--<div class="image-container"><img src="Images/scales.jpeg" alt="scales">
<div class="overlay-text">Dasmoto's Arts & Crafts</div>
</div>-->
<h1> Dasmoto's Arts & Crafts</h1>
<!--</header> -->
<div>
<h2 class="brushes">Brushes</h2>
<img src="Images/brushes.jpeg" alt="Various Hacksaw Brushes">
<h3>Hacksaw Brushes</h3>
<p>Made of the highest quality oak, Hacksaw brushes are known for their weight and ability to hold paint in large amounts. Available in different sizes. <strong class="starting">Starting at $3.00 / brush.</strong></p>
</div>
<div>
<h2 class="frames">Frames</h2>
<img src="Images/frames.jpeg" alt="Various Colored Picture Frames ">
<h3>Art Frames (assorted)</h3>
<p>Assorted frames made of different material, including MDF, birchwood, and PDE. Select frames can be sanded and painted according to your needs. <strong class="starting">Starting at $2.00 / frame.</strong></p>
</div>
<div>
<h2 class="paint">Paint</h2>
<img src="Images/finnish.jpeg" alt="Various Colored Paint Squeeze tubes">
<h3>Clean Finnish Paint</h3>
<p>Imported paint from Finland. Over 256 colors available in-store, varying in quantity (1 oz. to 8 oz.). Clean Finnish paint microbinds to canvas, increasing the finish and longevity of any artwork. <strong class="starting">Starting at $5.00 / tube.</strong></p>
</div>
</body>
</html>
CSS:
h1 {
background-image: url(https://content.codecademy.com/courses/freelance-1/unit-2/pattern.jpeg);
font-family: Helvetica;
font-size: 100px;
font-weight: bold;
color: khaki;
text-align: center;
background-size: cover;
}
/*.image-container {
position:relative;
display: inline-block;
}
.image-container img {
display:block;
width: 100%;
}
.overlay-text {
position:relative;
font-size: 100px;
color: khaki;
font-weight: bold;
font-family: Helvetica;
}*/
h2 {
font-family: Helvetica;
font-size: 32px;
font-weight: bold;
color: white;
}
h3 {
font-family: Helvetica;
font-weight: bold;
}
p {
font-family: Helvetica;
}
.brushes {
background-color: mediumspringgreen;
}
.frames {
background-color: lightcoral ;
}
.paint {
background-color: skyblue;
}
.starting {color: blue;
}