Basically one way to do it is to add background-color: black; to the element that contain Our Mission and the line below and then center it with one of the flexbox properties (in this case align-items). This site is a good resource and list all the properties regarding flexbox (and more!).
You added class="mission-statement" to your <h2> so the CSS was only applied to your <h2>
It’s working but you didn’t added a width to .mission-statement, so if you don’t add a width, by default the width will fit the size of the content. This is why your <h4> is aligned, you added a width to .container.
You should also put display: flex; and align-items: center; to the .container selector, because for flexbox to work you need to put display: flex and it’s properties to the parent of the element you wanna apply flexbox on, so in my code above .container is the parent of .mission-statement
Flexbox is hard to grasp at the beginning so it’s totally normal to struggle (and iirc It’s the first big project in the front-end-path). If you wanna get more familiar with flexbox I highly recommend Flexbox Froggy
Wow bro/sis/they you are amazing! Thank you very much for taking time out of your day to give me solutions and for telling me about flex froggy!
The solutions worked! Hopefully I can do the rest now with little guidance fingers crossed
hello @nab-sa please how do I get my text to not move on the webpage? The text underneath the pictures move as I expand or shrink the page. I use position:relative then tweak the top and sides. I tried using position:fixed and sticky too to no avail.
While you’re on the Making a Website Responsive syllabus you haven’t got into relative units and media queries yet so it’s normal if your content behave like that as you shrink and expand the page so I’d say just remove the position property, finish the project like in the design spec and go back to this project later (at least after the Learn Responsive Design part) to make it responsive.