I am working on the Tea Cozy project in the Full Stack Engineer Career Path course and I have hit a road block. I am stuck on the step when we use the image file img-mission-background.jpg and in the middle of the image we need to have a h2 element that says Our Mission and right under that element centered we have a h4 element that says Handpicked, Artisanally Curated, Free Range, Sustainable, Small Batch, Fair Trade, Organic Tea. I think I figured out how to get the image loaded correctly as a background image and along with the text to display. But I am having issues lining the h1 element right over the h4 element so there is not two different divides of a black background color over the image. I have attached photos of what my site current looks when deployed along with snippets of my html and CSS
code and the spec sheet of how it is suppose to look. Any help would be appreciated
Iām a fairly new learner with css too, but I would experiment with flex properties first.
I had a lot of trouble with this too on that stage - no worries !
Seems youāre looking to add
align-content: center;
in your .container class css definition. (and of course set background-color: transparent)
Below is the attached HTML code sorry I didnāt realize it took what I posted for the html code and just rendered it. When you say āIt is a good idea to separate your CSS background images from production images (content) used in your pages.ā When you say this do you mean its best for me to have the image set in my HTML code? Iām a little confused on that explanation. Thanks for mentioning we donāt need quotes for background images!