Element not taking up full width at lower sizes

How do I fix this. whenever I shrink my page down with the inspect element, instead of taking up the whole viewport everything just completely shrinks down. I've been working nonstop at trying to fix this. At first I thought the layout was the culprit but that doesn't seem to be the cause at all. This has been bugging me for a couple hours now. Does anyone have a solution for this?
No description
12 Replies
ἔρως
ἔρως3mo ago
if you want to fix it, you can use a clamped font size that uses rems and the viewport width but honestly? you're going way below 320px, from the looks of it personally, i stop worrying too hard at an unreasonably small size like 240px or use a clamp font size you can also only do so much
Incogsnito
IncogsnitoOP3mo ago
yeah the problem is that it starts to break at around 500px
ἔρως
ἔρως3mo ago
do this then
Incogsnito
IncogsnitoOP3mo ago
I figured out just now that the font size was the culprit
ἔρως
ἔρως3mo ago
if you search the forum, you will find many examples of clamp font sizes that should do it for you
Jochem
Jochem3mo ago
@barkemyy considering this is for Conquering Responsive Layouts, you can find a lot of other solutions to this issue in #conquering-responsive-layout
Incogsnito
IncogsnitoOP3mo ago
I do wonder though. is there an alternative for this? or are font-sizes just like this?
ἔρως
ἔρως3mo ago
well, no there's no decent alternative unless you manually change it for every single size where it breaks
Incogsnito
IncogsnitoOP3mo ago
definitely not. I was just wondering if it was a universal solution to my problem
ἔρως
ἔρως3mo ago
the problem is that the word "struggle" is wider than the available space, so, it will overflow it's not a magic "fix it all" wand, but an initial strong base where you then can change to your needs you can tweak the maximum, minimum and the inbetweens
Incogsnito
IncogsnitoOP3mo ago
ahh I see Alright thank you. I'll spend some time tomorrow looking into clamp. Thanks so much for the assistance!
ἔρως
ἔρως3mo ago
you're welcome

Did you find this page helpful?