Changing hyphenation in css
Permalink
Is this something I can do at the C5 level, or is it implemented differently at the theme level? I've been scanning the css docs for my theme, fundamental on 5.7, and haven't found the settings for the headline I need to turn of hyphenation for.
The theme I'm using allows words in H1 to be hyphenated, but on a cell phone it leads to lots of hyphens rather than line breaks. Looks horrible. Want to change the hyphen setting to off for H1. Lots of other aspects of the theme can be managed through C5, but the H1 settings were only for color, font and size variables.
Do you have a site link for where this is happening?
sustainedrelease.us. Of course I've changed the headline a few times and now on an iPhone in portrait orientation the words are short enough that they don't hyphenate on every line like they did with a different headline (the text in white).
The hyphenation declarations for the h1 are in main.css.
I am not sure how the files are setup in the theme. It might be in a .less file that is compiled to main.css.
.ccm-page h1 { -ms-word-break: break-all; word-break: break-all; word-break: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; }
I am not sure how the files are setup in the theme. It might be in a .less file that is compiled to main.css.
Turns out they fixed this in an update to the theme. All fixed.
I am afraid I don't understand the question.
What are you trying to accomplish?