I altered the project a little bit to have it look a bit more updated. I can’t figure out why my third column is offset:
HTML (I put Java because otherwise it did not show the code as intended)
<!DOCTYPE html>
<html>
<header>
<title>Dasmoto's Arts & Crafts</title>
<link href="./resources/css/index.css" type="text/css" rel="stylesheet">
</header>
<head>
<h1>Dasmoto's Arts & Crafts</h1>
</head>
<body>
<div class="topic">
<h2 id="brushes">Brushes </h2>
<img src="Resources\images\brushes.jpeg">
<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.
<span class="price">Starting at $3.00 / brush.</span>
</p>
</div>
<div class="topic">
<h2 id="frames">Frames</h2>
<img src="Resources\images\frames.jpeg">
<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.
<span class="price">Starting at $2.00 / frame.</span>
</p>
</div>
<div class="topic">
<h2 id="paint">Paint</h2>
<img src="Resources\images\paint.jpeg">
<h3>Clean Finish 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.
<span class="price">Starting at $5.00 / tube.</span>
</p>
</div>
</body>
</html>
CSS
- {
box-sizing: border-box;
}
h1 {
background-image: url(“https://content.codecademy.com/courses/freelance-1/unit-2/pattern.jpeg”);
color: khaki;
font-family: Helvetica;
font-size: 100px;
font-weight: bold;
text-align: center;
}
h2 {
font-family: Helvetica;
font-size: 32px;
font-weight: bold;
color: white;
}
h3 {
text-align: center;
}
.topic {
display:inline-block;
width: 33%;
border: 1px red solid;
}
img {
display: block;
height: 250px;
width: 50%;
margin-left: auto;
margin-right: auto;
}
#brushes {
background-color: mediumspringgreen;
}
#frames {
background-color: lightcoral;
}
#paint {
background-color: skyblue;
}
.price {
color: blue;
}