NicoB Posted April 21, 2022 Posted April 21, 2022 (edited) Site URL: https://nicobaumann.com/ Hey there! I'm trying to use different fonts or font styles in a single portfolio page title. I.e. "Facebook" and "Skate Nation Ghana" in the first row would use different fonts, or one part would be bold or italic while the other isn't. Is that possible? Thank you! Nico Edited April 21, 2022 by NicoB double website
Beyondspace Posted April 21, 2022 Posted April 21, 2022 22 minutes ago, NicoB said: Site URL: https://nicobaumann.com/ Hey there! I'm trying to use different fonts or font styles in a single portfolio page title. I.e. "Facebook" and "Skate Nation Ghana" in the first row would use different fonts, or one part would be bold or italic while the other isn't. Is that possible? Thank you! Nico Try #collection-62564707136c1779158d3090 .portfolio-hover-items-list > li:first-child span { color: red; font-family: Arial; } #collection-62564707136c1779158d3090 .portfolio-hover-items-list > li:nth-child(2) span { color: blue; font-family: tahoma; } Let me know how it works on your site BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> No-code customisations for Squarespace
Beyondspace Posted April 21, 2022 Posted April 21, 2022 My testing BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> No-code customisations for Squarespace
NicoB Posted April 21, 2022 Author Posted April 21, 2022 Thank you! That's a great start. I'd love to know if is this also possible in a single line? Basically, giving the bit in the yellow circle a different color/font/font style.
NicoB Posted April 22, 2022 Author Posted April 22, 2022 Hi, I'm politely bumping this thread back up to see if anyone has a solution for this problem. Thank you in advance! Nico
tuanphan Posted April 24, 2022 Posted April 24, 2022 On 4/23/2022 at 1:28 AM, NicoB said: Hi, I'm politely bumping this thread back up to see if anyone has a solution for this problem. Thank you in advance! Nico Add to Design > Custom CSS a.portfolio-hover-item[href="/work/facebook"] span:before { content: "FACEBOOK "; font-size: calc(~"(1.4 - 1) * 1.2vw + 1rem"); } a.portfolio-hover-item[href="/work/facebook"] span:after { content: "skate nation ghana"; color: yellow; font-size: 20px; font-size: calc(~"(1.4 - 1) * 1.2vw + 1rem"); } a.portfolio-hover-item[href="/work/facebook"] span { font-size: 0; } 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!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment