Answers for "css single line text does not break"

CSS
4

css how to make text not break

/* If you don't know why your line is breaking or you just want to make sure
this doesn't happen, add the CSS bellow: */
white-space: nowrap;

/* Example: */
/* HTML: */
<p>This is a paragraph<p>
/* CSS: */
p { white-space: nowrap; }
Posted by: Guest on December-08-2020
-1

line break inside content css

p:after {
	display: block;
	white-space: pre-line;
	content: "Me too! \A Me three!";
}
Posted by: Guest on May-10-2020

Browse Popular Code Answers by Language