-
Anders
How can I using flex, auto fit sizes on headline on different views (mobile, tablet, desktop)
See video in private section
-
David
Hi there,
unfortunately, there is no automatic method to resize text to fit the screen size.
You can add word break and hyphenation to fix word-wrap issues – is that something of interest ? -
Anders
Yes 🙂
-
David
You can try this CSS:
body { -ms-hyphens: auto; -webkit-hyphens: auto; hyphens: auto; } -
Anders
Awesome David..
Just a thought..Is it possible to to an “if case”
So if there is need for the break hyphens, ad it before the word “angst”
Like: præsentationsangst will become præsentations-angst
-
David
Theres a HTML unicode called a soft hyphen:
­
Which can be inserted into the text string to specify where a hyphen should appear.
See more info here:https://developer.mozilla.org/en-US/docs/Web/CSS/hyphens#suggesting_line_break_opportunities
Some things to note, browser support can be a little hit and miss, and the block editor likes to remove those kinds of code – so you may need to use a HTML block to add the text.
-
Anders
great thanks
-
David
You’re welcome
- You must be logged in to reply to this topic.