Im coding a website for myself (Jerico) and decided to test it on mobile but all the content is shoved to the left. I tried using meta-viewport and tweacking CSS but it doesn't work. Can someone help me get the website not all mushed together on mobile?
I've spent like 9 hours coding this for no reason and doing research and can't figure anything out. Please help.
Here is my website and Github for it: jericogit.github.io/Jerico/Index.html https://github.com/JericoGit/Jerico
There a few reasons why you're website is doing that on mobile. I can see that you're using flexbox which is a good start but there are things that can be done to make it wrap properly. I will note though that some people prefer grids, but I prefer flexbox, so I'll make suggestions based on that.
First, for the body I like to add overflow: hidden; to stop any overhang on the website.
Next, we can tackle the content squishing. There are at least two easy ways to approach it.
Option 1 I use this option sometimes, but I prefer option #2. In this one you're applying the flex-wrap: wrap; property, essentially telling all the children in the parent to wrap to the next line when there isn't enough page space.
Option 2 I like do to do a combo of media queries, I find it looks cleaner.
Your design will look much cleaner if you the following sizing trick:
This way your elements will look more uniform, and will grow from small screen sizes up to your maximum.
In terms of other changes to help with cleaner responsive design:
EDIT