By using
span.avoidwrap { display:inline-block; }
and wrapping the text I want to be kept together in
<span class="avoidwrap"> Text </span>
it will wrap first in preferred blocks and then in smaller fragments as needed.
More Related Contents:
- How to word wrap text in HTML?
- How to turn off word wrapping in HTML?
- How can I force a long string without any blank to be wrapped?
- How to stop text from taking up more than 1 line?
- How to prevent line breaks in list items using CSS
- Wrap text in tag
- How to wrap text of HTML button with fixed width?
- Difference between overflow-wrap and word-break?
- How to make a DIV not wrap?
- How to force inline divs to stay on same line?
- Word wrap a link so it doesn’t overflow its parent div width [duplicate]
- Balanced text wrapping in HTML
- Specific order of inline-block elements on mobile and desktop devices
- How to make moving CSS objects like this?
- Why doesn’t height: 100% work to expand divs to the screen height?
- Put icon inside input element in a form
- Can I change the checkbox size using CSS?
- How to blur(css) div without blur child element [duplicate]
- Should I specify height and width attributes for my IMGs in HTML?
- Preventing double borders in CSS Grid
- Create a responsive navbar sidebar “drawer” in Bootstrap?
- CSS3 transition doesn’t work with display property [duplicate]
- Image scaling causes poor quality in firefox/internet explorer but not chrome
- How do I center list items inside a UL element?
- Why does CSS not support negative padding?
- CSS data attribute new line character & pseudo-element content value
- CSS hide scroll bar if not needed
- How to put img inline with text
- How to flatten nested divs to display them in a CSS grid?
- How to implement a Navbar Dropdown Hover in Bootstrap v4?