Jump to content

Text splitting onto 2 lines when in windowed.

Recommended Posts

  • Replies 4
  • Views 523
  • Created
  • Last Reply

Top Posters In This Topic

Posted
On 6/22/2023 at 3:38 AM, tuanphan said:

You try adding this to Design > Custom CSS

@media screen and (min-width:901px) and (max-width:1200px) {
div#block-e6db60e62e97f379fba4 h4 {
    font-size: 38px !Important;
}
}

Making button text on 1 line + keep 3 buttons on same line?

Hi thank you for your response!

Yes, making the button text stay on 1 line and keep the 3 buttons on the same line. 

Posted

@nickmorsillo If you add white-space:nowrap or white-space:pre to the buttons, it will make sure the button text stays on one line as the screen becomes smaller.

 

However, because fluid engine works on a grid, unless you've dragged the button blocks to take up enough horizontal space so that they don't overlap on smaller screens, I don't believe you'll have the flexibility to keep the text in one line, and three buttons that way.

 

What you could do is use hyperlinked text instead of button blocks, and style the text to take on the same styling and hover interactions as your buttons. As they will live in one block assigned in the FE grid instead of 3 separate blocks, they will be more flexible as the screen gets squished. Lmk how that goes and if you need extra code help, unless @tuanphan has a better way?

Posted
13 hours ago, MayaViolet said:

@nickmorsillo If you add white-space:nowrap or white-space:pre to the buttons, it will make sure the button text stays on one line as the screen becomes smaller.

 

However, because fluid engine works on a grid, unless you've dragged the button blocks to take up enough horizontal space so that they don't overlap on smaller screens, I don't believe you'll have the flexibility to keep the text in one line, and three buttons that way.

 

What you could do is use hyperlinked text instead of button blocks, and style the text to take on the same styling and hover interactions as your buttons. As they will live in one block assigned in the FE grid instead of 3 separate blocks, they will be more flexible as the screen gets squished. Lmk how that goes and if you need extra code help, unless @tuanphan has a better way?

I usually use Code Block to add 3 buttons, or adjust CSS grid-column-start/grid-column-end of 3 buttons

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!)

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.