Jl87 Posted December 31, 2023 Share Posted December 31, 2023 Hi! I am trying to prevent text wrap on a specific title in mobile. See image below - I want it as ONE LINE, not two. I tried this CSS, but doesnt work. help? @media screen and (max-width: 767px) { #block-yui_3_17_2_1_1701560489330_14673 .sqs-block .sqs-block-content { white-space: nowrap !important; } }} website: gtmenabler.com password: password Link to comment
melody495 Posted December 31, 2023 Share Posted December 31, 2023 Hi @Jl87 you are not targeting the correct element. You need h3. tuanphan 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
Jl87 Posted December 31, 2023 Author Share Posted December 31, 2023 @melody495 Thank you! I got this online so dont know CSS personally. Can you elaborate on what to put in the CSS to fix? thank you! Link to comment
melody495 Posted January 1 Share Posted January 1 16 hours ago, Jl87 said: @melody495 Thank you! I got this online so dont know CSS personally. Can you elaborate on what to put in the CSS to fix? thank you! Hi, I'm not at my laptop so apologies for the poor formatting. See purple highlight, the first is your block ID, the second is the element where your text is, which is h3. So keep your code the same, just update the selectors following your block ID to be h3 instead. Like below, so replace ".sqs-block .sqs-block-content" with "h3" #your_block_id h3 { } -------- > 👆 <---------- 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 melody495 Posted January 3 Solution Share Posted January 3 @Jl87 Hi, did you figure it out? it doesn't seem to be an issue anymore, at least on the iPhone XR that I tested above. -------- > 👆 <---------- 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