#basic web dev help please ?

3 messages · Page 1 of 1 (latest)

half brook
#

'<!DOCTYPE html>
<html>
<head>
<title>Dasmoto</title>
<link href="./resources/css/style.css" type="text/css" rel="stylesheet">
</head>
<body>
<section id="banner-text">
<header>
<h1 style="background-image: url('./resources/media/pattern.webp'); z-index: ;">Dasmoto's Arts & Crafts</h1>
</header>
</section>
<main>
<section id="brushes">
<h2>Brushes</h2>
<img src="./resources/media/hacksaw.webp">
<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="price">Starting at $3.00 / brush.</strong></p>
</section>
<section id="frames">
<h2>Frames</h2>
<img src="./resources/media/frames.webp">
<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="price">Starting at $2.00 / frame.</strong></p>
</section>
<section id="paint">
<h2>Paint</h2>
<img src="./resources/media/finnish.jpeg">
<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="price">Starting at $5.00 / tube.</strong></p>
</section>
</main>
</body>
</html>'

This is my code but the h2 element is displaying above my h1 element and i cant get it to move can some one help please

below is my CSS code

'#banner-text {
position: absolute;
top: 0;
color: white;
padding: 10px;
}

#brushes h2 {
font-family: Helvetica;
font-size: 32px;
font-weight: bold;
color: white;
background-color: mediumspringgreen;
padding: auto;
max-width: auto;
border: 2px;
height: auto;
}

#frames h2 {
font-family: Helvetica;
font-size: 32px;
font-weight: bold;
color: white;
background-color: lightcoral;
padding: auto;
max-width: auto;
border: 2px;
height: auto;

}

#paint h2 {
font-family: Helvetica;
font-size: 32px;
font-weight: bold;
color: white;
background-color: skyblue;
padding: auto;
max-width: auto;
border: 2px;
height: auto;
}

.price {
font-family: Helvetica;
color: blue;
}'

pseudo thunder
#

Whats the problem with it? Tell exactly what do you want

half brook
#

I wanted the H1 element with a background image but the H2 element is displaying above the H1 element I think I have the wrong position for that I'd?