RachaelLoerwald Posted September 1, 2021 Share Posted September 1, 2021 Site URL: https://www.meetoffsite.com/home I created a third font to use on my site by using css to alter the h3 font. This looks great on desktop but I can't figure out how to change it on mobile. It looks huge on mobile and I need to reduce it on mobile. Below is the css I used for the new h3 style: //h3 font change// h3 { font-family: roboto; font-weight: 500; line-height: 1.8em; font-size: 14px; text-transform: uppercase; letter-spacing: .2em; } How can I reduce the new h3 header on mobile sitewide? Link to comment
KwameAndCo Posted September 1, 2021 Share Posted September 1, 2021 Use a media query. For example. //h3 font change// h3 { font-family: roboto; font-weight: 500; line-height: 1.8em; font-size: 14px; text-transform: uppercase; letter-spacing: .2em; @media (max-width: 640px) { font-size: YOURFONTSIZE; } } Work With Me 🖥️💻📱 Please remember to tag me so that I get a notification and respond to your help requests. If my answers have helped you, please drop a like and mark my answer as best to help other users find solutions quickly. You can also thank me or make requests by buying me a coffee ☕. (Caffeine fuels me to take more requests) For Squarespace Tips & Tricks, visit @squareskills (Youtube 📺 Tutorials) For Premium and FREE plugins, visit Squareskills (Plugin Store) 🧩 Some links may be affiliate/referral links. Link to comment
RachaelLoerwald Posted September 1, 2021 Author Share Posted September 1, 2021 I tried a media query but it's not working. Does it have something to do with the fact that I'm using an alternate h3? Link to comment
tuanphan Posted September 5, 2021 Share Posted September 5, 2021 On 9/2/2021 at 12:14 AM, RachaelLoerwald said: I tried a media query but it's not working. Does it have something to do with the fact that I'm using an alternate h3? I see you used 2 h3 code. You can remove one @media screen and (max-width: 640px) { h1 { font-size:3rem !important } h2 { font-size: 2.5rem !important } h3 { font-size: 2rem !important } .sqsrte-large { font-size: 1.25rem !important } } and @media (max-width: 640px) { h3 { font-size:8px !important } } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.