Matt-W-Urst Posted October 27, 2023 Share Posted October 27, 2023 Hi there, maybe somebody knows where I have an error 🙂 I styled the quotation mark by hiding standard mark and styling first letter. This works in Firefox, Safari … but not in Chrome. And I don't get it. Thank you in Advance This is my code: https://echidna-flugelhorn-5ybf.squarespace.com/projekte/brand-marketing-mpu-profi // Quotations //Delete Quotations Marks .sqs-block-quote span:first-child { display : none; } .sqs-block-quote span:last-child { display : none; } // 1. Letter Styling blockquote::first-letter { color: #F8D03F !important; font-size: 5em !important; padding: 0.3em 0.05em 0.1em !important; margin: 0em 0.2em 0em -0.2em !important; float: left !important; } this is it right looking in safari: and this in chrome: Link to comment
Matt-W-Urst Posted October 28, 2023 Author Share Posted October 28, 2023 @creedon Could you give it a look? Link to comment
melody495 Posted October 28, 2023 Share Posted October 28, 2023 (edited) Display none doesn't remove the element, it's still there, just not showing. In your case, first-letter is styling the quotation mark in the <span>. But, Firefox (sounds like safari also) treats certain characters as letters. In your case the quotation in the span is the first-letter. A bug perhaps? But any characters around the first real letter is being treated as part of the first-letter selection, so it's just lucky that it worked on Firefox (and safari). Not sure what's the best solution. Let's see... or someone else might be able to help. Edit: assuming there is no built-in option to use your own quotation mark in the block? Edited October 28, 2023 by melody495 Matt-W-Urst 1 -------- > 👆 <---------- Please quote or @ me when replying, or I won't get a notification Melody | Squarespace Nerd e: melody@melodylee.tech 💻 💁♀️ 1-2-1 Squarespace Training session <- feeling stuck and want to learn? 👩💻 💁♀️ Website help <- send me your to-do list. From code to plugin to domain setup. 🧰 See the tools I use (contain affiliate links) ☕ Did I help? I like coffee (Thank you) Link to comment
melody495 Posted October 28, 2023 Share Posted October 28, 2023 Could you just use a regular text block? Matt-W-Urst 1 -------- > 👆 <---------- Please quote or @ me when replying, or I won't get a notification Melody | Squarespace Nerd e: melody@melodylee.tech 💻 💁♀️ 1-2-1 Squarespace Training session <- feeling stuck and want to learn? 👩💻 💁♀️ Website help <- send me your to-do list. From code to plugin to domain setup. 🧰 See the tools I use (contain affiliate links) ☕ Did I help? I like coffee (Thank you) Link to comment
Solution creedon Posted October 28, 2023 Solution Share Posted October 28, 2023 (edited) I suggest removing the extra character ( » ) in the text. Remove the CSS for your current effect, make a copy somewhere. The try the following. /* begin quote effect */ .sqs-block-quote blockquote { margin-bottom : 2em; } .sqs-block-quote blockquote span:first-child, .sqs-block-quote blockquote span:last-child { visibility : hidden; } .sqs-block-quote blockquote span:first-child::before { color : #f8d03f; content : '»'; font-size : 5em; visibility : visible; } .sqs-block-quote blockquote span:last-child::before { color : #f8d03f; content : '«'; font-size : 5em; vertical-align : top; visibility : visible; } /* end quote effect */ Let us know how it goes. Edited October 28, 2023 by creedon Matt-W-Urst and melody495 2 Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects. Link to comment
Matt-W-Urst Posted October 29, 2023 Author Share Posted October 29, 2023 (edited) @creedon Wow, wow, wow! Again, you had the magic knowledge that solved my problem. And by the way I learned about CCS 🙂 Thank you very much for your unconditional helpfulness! I am very grateful that you gave me your attention again in this community. @melody495 Thank you also, for your time and practical idea! Edited October 29, 2023 by Matt-W-Urst creedon 1 Link to comment
melody495 Posted October 29, 2023 Share Posted October 29, 2023 @Matt-W-Urst you're welcome! Learnt a new syntax 🙂 Matt-W-Urst 1 -------- > 👆 <---------- Please quote or @ me when replying, or I won't get a notification Melody | Squarespace Nerd e: melody@melodylee.tech 💻 💁♀️ 1-2-1 Squarespace Training session <- feeling stuck and want to learn? 👩💻 💁♀️ Website help <- send me your to-do list. From code to plugin to domain setup. 🧰 See the tools I use (contain affiliate links) ☕ Did I help? I like coffee (Thank you) 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