Jump to content

Is it possible to fix the width of a text block?

Recommended Posts

  • Replies 10
  • Views 26.8k
  • Created
  • Last Reply

It is possible, at the moment your text box is set to be 50% width (6 column of a 12 column grid) until it detects a mobile screen.

If you didn't wish to scale you would just set a fixed width value to it, ie. 500pxor you would use media queries to change the width at specific browser sizes.

edit: adding code up here

    .sqs-block-content p {max-width:300px;}

@media only screen and (max-width:640px) {
   .sqs-block-content p {max-width:100%!important;}

change the values to whatever you need

Link to comment

How would I set a fixed width value? Do I need to inject code?

I'm sorry if this is dumb question; I am not sure if I am missing something, but with Squarespace 7 the only way I can find to adjust a block's width is when you place another block beside it and use the handle to scale them.

Thank you for the quick response!

Link to comment
  • 8 months later...


This topic is now archived and is closed to further replies.

This topic is now closed to further replies.
  • 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.