Tell us what’s happening:
I started the freecodecamp program about 4/5 months ago and it’s definitely the best decision I’ve made in a very long time.
I would like to know, please, what are the best ways for me to make my projects mobile-friendly? media quierries comes to mind but is there something else? Your code so far
The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.
You will need to take an additional step here so the code you wrote presents in an easy to read format.
Please copy/paste all the editor code showing in the challenge from where you just linked.
Replace these two sentences with your copied code.
Please leave the ``` line above and the ``` line below,
because they allow your code to properly format in the post.
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/188.8.131.52 Safari/537.36 Edg/106.0.1370.42
You are on the right track with media queries. My suggestion would be to start by making your page look good on a small device (such as a cell phone) and then use media queries to adjust the layout as the view port gets wider. Most people refer to this as a “mobile-first” approach but I prefer the term “narrow-first” because you can still trigger the narrow layout on a desktop by zooming in a lot.
I had the same problem i put my finished projects onto code pen so i could change them around some more but when i checked them on my cell phone they looked horrible. I ended up changing the @media statement for the sections that didnt look good. I changed to the full screen mode then minimized the screen as much as possible to mimick a cell phone screen after making changes and it seemed to work. After you are done recheck them on youre cell phone to see if the changes worked ok. I have only been at this a few weeks so there might be a better way to do this but it works.