Ephera to Programmer HumorEnglish · 1 month agoStill wild to me that we built webpages like thisimagemessage-square10fedilinkarrow-up1223arrow-down113cross-posted to: programmer_humor@programming.dev
arrow-up1210arrow-down1imageStill wild to me that we built webpages like thisEphera to Programmer HumorEnglish · 1 month agomessage-square10fedilinkcross-posted to: programmer_humor@programming.dev
minus-squareEpheraOPlinkfedilinkEnglisharrow-up1·1 month agoWell, the situation you describe, is probably best handled by CSS media queries. In case you’re not familiar, you can write: @media (width < 800px) { h1 { font-size: 110%; } } …to get smaller headings on mobile, for example. But yeah, reality may be more ugly. Especially, if you’re using a bulky JS framework, it may be easier to do the JS dance.
Well, the situation you describe, is probably best handled by CSS media queries.
In case you’re not familiar, you can write:
@media (width < 800px) { h1 { font-size: 110%; } }
…to get smaller headings on mobile, for example.
But yeah, reality may be more ugly. Especially, if you’re using a bulky JS framework, it may be easier to do the JS dance.