Hello!! I’ve gotten pretty much to the end of the tea cozy project, but there are two things that don’t look quite right to me.
1) In the Main section where it says “Our Mission”, the text is in the wrong place, isn’t really centered?, and it seems like the background is extending too far. I have no idea where I’m going wrong here…I’ve looked through most of the forum posts and still can’t find the error. Any help would be much appreciated! (code below)
<!--Header-->
<div id="mission">
<div class="mission-container">
<h2 class="our-mission">Our Mission</h2>
<h4 class="our-mission">Handpicked, Artisanally Curated, Free Range, Sustainable, Small Batch, Fair Trade, Organic Tea</h4>
</div>
</div>
/*--Main--*/
.mission-container {
background-image: url(https://content.codecademy.com/courses/freelance-1/unit-4/img-mission-background.jpg?_gl=1*1rws6em*_ga*NjY2NDQwOTgyOC4xNjcxNTM5NTMy*_ga_3LRZM6TM9L*MTY5MDQ1MzIyNy4xMjkuMS4xNjkwNDUzMjYzLjAuMC4w);
background-repeat: no-repeat;
background-position: center;
opacity: 0.7;
height: 700px;
width: 1200px;;
margin: 40px auto 40px auto;
display: flex;
}
h2.our-mission, h4.our-mission {
background-color: #000;
color: seashell;
text-align: center;
vertical-align: middle;
width: 1200px;
padding: 15px;
margin: 0px;
position: relative;
top: 300px;
}
.our-mission {
align-items: center;
}
2) in my “Locations” section, the text overflows out the bottom in the “East Bayside” and “Oakdale” text boxes when I shrink the browser, and I’m trying to figure out which flexbox property to use and I can’t quite figure it out.
<!--Locations-->
<div id="locations">
</div>
<div class="banner">
<div class="locations-title">
<h2>Locations</h2>
</div>
<div class="location-box-container">
<div class="location-box">
<h4>Downtown</h4>
<p>384 West 4th St</p>
<p>Suite 108</p>
<p>Portland, Maine</p>
</div>
<div class="location-box">
<h4>East Bayside</h4>
<p>3433 Phisherman's Avenue</p>
<p>(Northwest Corner)</p>
<p>Portland, Maine</p>
</div>
<div class="location-box">
<h4>Oakdale</h4>
<p>515 Crescent Avenue</p>
<p>Second floor</p>
<p>Portland, Maine</p>
</div>
</div>
</div>
/*--Locations--*/
.banner {
background-image: url(https://content.codecademy.com/courses/freelance-1/unit-4/img-locations-background.jpg?_gl=1*1wd9lbp*_ga*NjY2NDQwOTgyOC4xNjcxNTM5NTMy*_ga_3LRZM6TM9L*MTY5MDk5MjU1OS4xMzkuMC4xNjkwOTkyNTU5LjAuMC4w);
background-repeat: no-repeat;
background-position: center;
height: 500px;
width: 100%;
margin: 40px auto auto auto;
padding-top: 85px;
}
.location-box-container {
width: 70%;
margin: 15px auto auto auto;
display: flex;
justify-content: space-between;
}
.location-box {
background-color: #000;
padding: 15px;
height: 250px;
flex-basis: auto;
margin-bottom: auto;
margin-left: 15px;
margin-right: 15px;
margin-top: auto;
min-height: 0;
}
Thank you in advance for all of your assistance!!