Jump to content

Bedford: How do I make the banner text shrink in size, instead of wrapping?

Recommended Posts

  • Replies 4
  • Created
  • Last Reply

You can set the font size using viewport width (vw) units instead of pixels (68px by default). These units specify a size relative to the width of the browser's viewport. As an example, add this to Design > Custom CSS and then gradually reduce the width of your browser window:


.desc-wrapper p>strong, .desc-wrapper p>em>strong {
 font-size: 4vw;
}

I hope that helps

-Paul

Squarespace Expert & Professional Developer

Contributors to this forum voluntarily give their time to help you. If we correctly answer your question, please accept the answer by clicking Accept below it (you'll see it when you're logged on). If an answer doesn't help, feel free to ask for more help or wait for other forum users to add their comments and/or answers.

Whenever an accepted answer helps you, please vote it up using the up arrow on the right. This helps other forum users by giving them confidence in an answer.

About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥.
Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. 
Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional.

Link to comment

Hey, thanks for the response! This is working quite nicely.

One more thing I do want to ask, How would you increase the maximum width of the banner text so that the text goes all the way out to the edge of the screen? Right now it seems like the width of the text will not go past a certain point.

Thanks.

Link to comment

Hey, thanks for the response! This is working quite nicely.

One more thing I do want to ask, How would you increase the maximum width of the banner text so that the text goes all the way out to the edge of the screen? Right now it seems like the width of the text will not go past a certain point.

Thanks.

Link to comment

The left and right margins are by design. You can reduce them by increasing the maximum width beyond 956 pixels.


.desc-wrapper {
   max-width: 956px;
   margin: 0 auto;
}


About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥.
Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. 
Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional.

Link to comment

Archived

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

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