Jump to content

Help preventing text wrap on a heading on mobile

Go to solution Solved by melody495,

Recommended Posts

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

IMG_0168.PNG

Link to comment
  • Replies 4
  • Views 1.4k
  • Created
  • Last Reply

Top Posters In This Topic

Hi @Jl87 you are not targeting the correct element. You need h3.

image.thumb.png.55b5380484016b2a2374071357a14aa5.png

-------- > 👆 <---------- 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
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. 

Screenshot_20240101-1550182.thumb.png.c11d2325a4fb05b1fc6325291cf03213.png

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

@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

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.