Hello!
Would you take a moment to check out my product landing page project for the Sunny Travel Company (fake, btw ): https://codepen.io/hilbug/full/bGgQMqM
I build pretty much everything with Bootstrap but decided to go outside my comfort zone here and instead used vanilla CSS based on Flexbox. If Iām being honest, it feels like a hot mess.
There are still a few quirks I am trying to iron out for small screens with little success. You can see this by selecting iPhone X in the inspector:
nav-bar button text is wrapping so it looks sliced in half
nav-bar buttons are not stacking
header log & text is not centering
Lessen the space on either side of the āabout usā paragraph
Figure out a better way to space out footer-links so itās centered
I havenāt tried using wrap value in flexbox so Iām not too sure what it does. It just so happened that Iām looking at your site through iPhoneX and I can see the errors that you were talking about. On one of my pages, I changed the flex direction to columns for smaller screens. You might want to look into that, but if you want to keep using rows then maybe smaller font size or cut down the words into small ones (ex: About us > About) It seems that you already know how to fix the content margins. Anyways, Iāll take a look later through my PC and play around with the margins. The content blew me away though. Keep up the good work!
You can add white-space: nowrap; to your .nav-bar a selector which will stop the text from jumping down. But you might not need to bother with this if you fix the next problem.
Adding flex-wrap: wrap; to your .nav-bar > ul selector will make the links jump down when they donāt have enough space. For some reason they then overlap each other but perhaps use margin to fix this?
Adding justify-content: center; to the .header-logo selector will center it (but you might just want to do this as a media query for smaller screen size).
Remove width: 60%; from the #about-us > p selector to let the text stretch out, then add a bit of padding to the sides so the text doesnāt touch the edges. You can add a max-width so that the text doesnāt stretch too wide.
Maybe experiment with flexbox for the footer-links?
@Trek182021@Aspiring_Coder Thank you both! I appreciate you taking the time to review. I made some changes and now I think it looks much better on the smaller screens. I updated the font size on the nav buttons, decreased the font size and updated the width for the about us text, and removed āspace-betweenā set for the header so things are now centered. Iāll deal with the footer later. Thanks again! ~HiL