Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

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; }
Source by css-tricks.com #
 
PREVIOUS NEXT
Tagged: #css #text #break
ADD COMMENT
Topic
Name
5+4 =