:root{font-size:1vw:}.my-title{font-size:7rem}

above is does the reponsive size of the font depending on the vw but the is the feasablity of this tried in one blog type web page lookgs exaclty from TABLET - LARGE DESKTOP
16 Replies
ἔρως
ἔρως14mo ago
it's actually an extremely awful idea with 1 single line, you completely obliterated all chances of a visually impaired person from using your website and since you arent clamping the size, a phone will have a tiny micro font, while an ultra-wide desktop will have an huge font size
ZEROHEART
ZEROHEARTOP14mo ago
thank you for an amazing feedback so if figma mockup is at 1440p width given by design person , expecting it to be perfect on all screen excluding mobile
ἔρως
ἔρως14mo ago
it will never be perfect linux, windows and macos have different font rendering
ZEROHEART
ZEROHEARTOP14mo ago
how am i supposed to design in such a way that i fits almost
ἔρως
ἔρως14mo ago
just make a normal responsive design you dont have unlimited horizontal space, but you have vertical
ZEROHEART
ZEROHEARTOP14mo ago
you mean add padding more (XL screen) less(medium screen)
ἔρως
ἔρως14mo ago
so, make shit vertical, if they cant fit that too, if you are doing it all by yourself you can use some global css variables and change the variables on media queries
ZEROHEART
ZEROHEARTOP14mo ago
so you mentioned above clamp(3rem,1rem+10vw,13rem) is this how it supposed to be used?
ἔρως
ἔρως14mo ago
you will have a buttload of headaches and space yup, minimum value then current value and then maximum value also, dont put it in the :root, but in the body
ZEROHEART
ZEROHEARTOP14mo ago
yes!
ἔρως
ἔρως14mo ago
also, style the h1-h6 manually h1 .... h6
ZEROHEART
ZEROHEARTOP14mo ago
h1,h2,h3,h4,h5,h6 {margin:0} basic like this and add font-size,weight based on media query right?
ἔρως
ἔρως14mo ago
use a margin-top you can use the clamp function as well but each one should have a different font size
ZEROHEART
ZEROHEARTOP14mo ago
ἔρως
ἔρως14mo ago
you're welcome remember: it will never be perfect
ZEROHEART
ZEROHEARTOP14mo ago
yep i have tried most of them you got any project that needs any work let me know 🙃 how to i mark this solved!!! got it!!
Want results from more Discord servers?
Add your server