Sometimes there is text in heading, links, or in titles which we don’t want to go in a new line. For this particular scenario there is a property in CSS that deals with this particular behavior. Here is how we can prevent breaking of line.
Practical Example:
You have long titles for photos or videos on your site...or your members names are breaking forcing the text to break up over several lines, thus pushing margins down.
Text content to website are as blood to human being. Well presented and quality text content always have an impact on the website’s outlook. We should take care of all aspects of text formatting either it is a font size or a character spacing. One of the little problems that cab be easily overlooked is unintentionally line breaking. This can be easily handle by using white-space property. Here is example code for this.
white-space:nowrap;
Add that line of code to your CSS whereever you have breaking lines of text
Replies
Can you show me the example Jfarrow? It sounds like very useful code.
sure bud, check out my members page, photos, videos
no problem...that must have been a Ning bug