It works like this:
h4 {
display:inline;
}
h4:after {
content:"\a";
white-space: pre;
}
Example: http://jsfiddle.net/Bb2d7/
The trick comes from here: https://stackoverflow.com/a/66000/509752 (to have more explanation)
More Related Contents:
- How to change the style of a ‘s label?
- Styling autocomplete dropdowns in browsers
- How to choose right name for 2 same classes? [closed]
- How to vertically center a container in Bootstrap?
- Print page numbers on pages when printing html
- Why position:sticky is not working when the element is wrapped inside another one?
- Color of stacked semi-transparent boxes depends on order?
- Apply style to parent if it has child with CSS [duplicate]
- How can apply multiple background color to one div
- Why doesn’t CSS ellipsis work in table cell?
- How is the margin-top percentage calculated?
- How to align flexbox columns left and right?
- Inline Form nested within Horizontal Form in Bootstrap 3
- How can I make a div with irregular shapes with css3 and html5?
- How do I add a highlight behind the text via CSS so it looks like Instagram-one below?
- How to remove indentation from an unordered list item?
- Font-Face Not loaded
- It is possible to expand a textarea only with CSS?
- How to apply padding to every line in multi-line text?
- How do I vertically align something inside a span tag?
- Maintain image aspect ratio in carousel
- How can I make the contents of a fixed element scrollable only when it exceeds the height of the viewport?
- CSS position element “fixed” inside scrolling container
- How to make a fixed column in CSS using CSS Grid Layout?
- Is there a way to tell an html element to ignore any stylesheets?
- Is it possible to change the order of list items using CSS3?
- Put fixed text on an input text box
- CSS float-right not working in Bootstrap 4 Navbar [duplicate]
- Cross browser method to fit a child div to its parent’s width
- Why does .class:last-of-type not work as I expect?