why does my content keeps getting smaller instead of adaptable to the device's width
here's my website on 2458px maybe
the second image is on 1026px i set the break point to 1024px
the other images are from tablets and going down
idk why it diminishes why can't i see some tightness in the design that disrupts it
i set the header nav to flex at least it should get closer to each other
or the grid
i tried to make it responsive i mean why it doesn't work
i can share the whole in a codepen or some




19 Replies
here
there's no images bcz i don't have codepen pro
Your CodePen seems to be working (more or less).
Note - You don't need CodePen Pro to add images.
You can either link to your actual images or use placeholder images.
but see how it looks on smaller displays all small and unreadable idk what i have done to be hones
I assume that you are referring to the left-hand bar and the main cards.
This is how I see your CodePen (I have added some images). As far as I can tell it is working correctly, the grid adapting to the available space.
You will of course need to work on the top bar and footer but I don't think that that is the issue you are referring to.
yeah that's how it looks on my codepen as well but wait lemme record a screenrecord
OK, so if it works in the CodePen but not on your site there must be something different between the 2.
From your capture it does appear to work initially but once the left-hand column is hidden it "looses" its ability to adjust the column cells.
I would double check your media-query to see if you are also changing the grid-template-columns property when you get below about 1100px (I know you used rem but you get the idea)
i set both mobile search bar thing & the main desktop search bar (the left column you referring to )
it still generates the same output
i even deleted them from the inspector
here's all my media queries
nothing suspicous
i can even share with you the theme if you want
it has this structure

wanna hear a joke
it's the inspector that's fucking me up

now i need a reliable tool to test my website on responsive cuz clearly it doesn't work on this inspector
Sometimes I’ve found on Wordpress that if you open the inspector and try to test the responsiveness , you have to refresh at the smaller screen size so that it loads the media query for that screen size- doesn’t always seem to have a resize event listener.
Not to barge into the thread - just want to share that I’ve found this with Wordpress. Refresh at that screen size to properly test
yup, wordpress only loads some styles if you refresh
the
is_mobile
function only works in the server, and that may be used by the theme (if you didnt built it from scratch) or even internally to avoid loading some desktop-only thingsi see, i do all the stylings in the style css but i appreciate the info
you're welcome