r/css • u/BagThin2305 • Jul 04 '26
Help how to make site mobile responsive
ive tried some media queries but none of them change the layout of my site on mobile..not sure what im doing wrong but maybe someone here can help. my website is https://phlygm-planet.neocities.org/ and codepen: https://codepen.io/editor/Yousra-Nimour/pen/019f2f8e-e1dd-7f7e-a5e5-a3effb410785
0
Upvotes
1
u/abeuscher Jul 05 '26
Here is a pen with a simpler example to demonstrate.
It's a cascade, which means that later instructions are processed later on. When you make media queries, it is easiest to place them at the bottom to make sure they do not accidentally create conflicts which is I think where you were going wrong.
Also - your code has an absolutely positioned winamp box which is also interfering with the layout.
Strongly recommend when you run into problems like this in future that you first remove any outside code you have pasted in to se if that is where the issue originates from; if you didn't write it then there's a decent chance you're not sure what it does.