Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > RocketCake
Keeping text inside a container

Me
Guest
Quote
2023-02-14 13:08:18

How do I keep my text inside a container so that it will automatically go onto a new line when it would go out of the container instead of keeping going and creating a scroll bar and going off the screen? Being able to to this seems integral to my website working on a variety of devices but otherwise I'd just have to plan everything for the smallest resolution.


erik
Registered User
Quote
2023-02-14 14:00:33

That's what containers are doing by default: They get bigger when you add more text or text wraps automatically when it doesn't fit into the width of the container. So that they work nicely on all screen sizes.

What you are describing sounds strange. Could you describe a bit more what you are doing exactly? Or post a screenshot?


Me
Guest
Quote
2023-02-14 14:37:00

https://drive.google.com/file/d/...

Here's a screenshot of what I mean. Currently the container is set to a specific size but when it's on auto the text just cotinues endlessly creating the scroll bar. What I want to happen is for the text to automatically drop to a new line rather than going off the page. Excuse the horrible website, I'm just messing around with features using random images I had saved at the moment.


Me
Guest
Quote
2023-02-14 15:01:10

Sorry figured it out. The issues was just using along string of characters. It will break up actual words in paragraphs as long as there are spaces.


erik
Registered User
Quote
2023-02-14 18:27:11

Ah, nice :)
I think there is a way to force them to break up as well, there is some CSS style for that if you need it.


avery
Registered User
Quote
2023-02-14 18:30:09

I have that problem with long URLs when viewing in cellphone portait mode. They do not wrap and URL text goes out of container, but I never see scroll bars.


micaelo
Registered User
Quote
2023-02-14 23:45:38

avery wrote:
"I have that problem with long URLs when viewing in cellphone portait mode. They do not wrap and URL text goes out of container ..."

You can easily fix that: Don't write the URL itself, but a short and meaningful description instead, and put the URL in the hyperlink.


martin
Registered User
Quote
2023-02-17 10:57:53

You can use CSS
overflow-wrap: break-word;

to break up words that would overflow a container.
See:
https://developer.mozilla.org/en...


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "?nternational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact