PartTwoDesign Posted September 3, 2021 Share Posted September 3, 2021 Site URL: https://sunflower-accordion-z2d3.squarespace.com/ My site is 7.0 - https://sunflower-accordion-z2d3.squarespace.com/ I have the below css targeting the card elements on the homepage: // HOMEPAGE // #introduction {.image-title p { color: white !important; font-size: 50px !important;} } // IMAGE CARD ON LIGHT BANNER // #professional-link {.image-title p {color: black !important; font-size: 50px !important;} .image-subtitle p, .image-subtitle p a {color: black !important;} } This forces the titles "HOMEOWNER" and "PROFESSIONAL" to be larger on the homepage. However, on mobile these titles are breaking onto two lines so I need to make them smaller for mobile and I can't seem to target them correctly... Thanks in advance! Link to comment
Solution iamdavehart Posted September 3, 2021 Solution Share Posted September 3, 2021 put your desired css inside a media query that only kicks in up to 768px (iPad width - this is the size squarespace kick their mobile styles in). e.g. something like this. @media screen and (max-width: 768px) { #introduction {.image-title p { font-size: 25px !important;} } } add this in addition to your existing rules of course. Dave Hart. Software/Technology Consultant living in London. buymeacoffee Link to comment
PartTwoDesign Posted September 3, 2021 Author Share Posted September 3, 2021 Thank you @iamdavehart! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment