Hi!
I’m trying to complete the Product Landing Page exercise and I’m having some trouble…
I’m trying to use flexbox in order to have the following layout:
one div the whole row (title)
one div the whole row (banner)
two divs, each one spreading to 50% of one row (features & video)
another two divs, each one spreading to 50% of one row (pricing & newsletter form).
For some reason I cannot understand, the two last divs (pricing & newsletter) are hidden from the webpage…
Any help or tip would be very very much appreciated!
Oh, god! Haha! Thank you very much!!!
Do you also know how can I align the last two sets of divs under the banner (to have the same width as the banner does)?
I would still remove the default margin on the <figure> to make it flush with the columns below it.
Your video is not responsive, search for some solutions (this site can generate the HTML/CSS for you).
Add align-items: center; to the .row in the media query, this won’t fully align the elements but it’s a start. You should probably also switch the 50% (col-half) to be 100% when the layout is stacked.
.embed-container is a class but you are using it as an id in the HTML
Right, it’s just aligning the .col-half elements and now that they are 100% it doesn’t make any difference. One option is to make the .col-half a flex container and do the alignment on it. You will have to compensate for this on the #video-container by adding flex: 1;.