CMS Development

Matt1986
Participant

text overflowing div

SOLVE

Hi 

 

i have provided a link to a test page which im working on. i have been creating a custom tabber module and have nearly completed it. My only issue is that a rich text field isnt behaving like i would expect, the text is running off the page rather than dropping down to the next line. im sure its a simple fix, but just cant seem to fix it. 

 

see page here https://www.eurobase.com/-temporary-slug-ac5709ab-7e61-477e-8202-9354321a939d?hs_preview=ixaAwuUy-64...

 

thank you for any help. much appreciated

 

regards

Matt

0 Upvotes
1 Accepted solution
Stephanie-OG
Solution
Key Advisor

text overflowing div

SOLVE

Hi Matt, 

 

I'm assuming this is the "intro tab text" below:

 

intro-tab-text.png

 

If you break it into multiple words it should just drop down to the next line. However, if you need to have one big word like the above, you can use the word-break property: 

 

.intro-tab-text {
  word-break: break-word
}

word-break.png

 

I hope that helps! 


Stephanie O'Gay GarciaHubSpot Design / Development

Website | Contact

 

If this helped, please mark it as the solution to your question, thanks!

View solution in original post

2 Replies 2
Stephanie-OG
Solution
Key Advisor

text overflowing div

SOLVE

Hi Matt, 

 

I'm assuming this is the "intro tab text" below:

 

intro-tab-text.png

 

If you break it into multiple words it should just drop down to the next line. However, if you need to have one big word like the above, you can use the word-break property: 

 

.intro-tab-text {
  word-break: break-word
}

word-break.png

 

I hope that helps! 


Stephanie O'Gay GarciaHubSpot Design / Development

Website | Contact

 

If this helped, please mark it as the solution to your question, thanks!

Matt1986
Participant

text overflowing div

SOLVE

Hi 

 

thanks for that. I knew it would be something stupid. I actually didn’t realise that the default wouldn’t automatically force the word to the next line. 

 

Thanks, at least i know from now one

much appreciated!

 

regards

matt

0 Upvotes