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

Tags: breaks, css, line, nowrap, text, tip, wrapping

Views: 260

Reply to This

Replies to This Discussion

Can you show me the example Jfarrow? It sounds like very useful code.

sure bud, check out my members page, photos, videos

Sorry for the off topic: I went over to your site to check the code out and noticed all your tags have a maximum of 20 results, although it is obvious that you have more videos in some categories. I posted a new topic for this here: http://creators.ning.com/forum/topics/all-tags

RSS

Latest Activity

Kos replied to sho allan's discussion '[TIP-NING 3.0] Add icon in menu tabs!!'
"Going to try this today.  Fingers crossed I don't screw it up *lol*"
38 minutes ago
Kos replied to Elshara Silverheart's discussion 'Free Site Promotion'
"I have to bookmark this one.  Thank you!"
40 minutes ago
Ana Maria Sancho Biesa replied to Ana Maria Sancho Biesa's discussion 'Activity ha dejado de funcionar en mi red 3.0' in the group Ning Networks en español
"Las actividades se recuperaron.Cuando escribí lo que abre este hilo de discusión no…"
4 hours ago
Joe Fulton replied to Jared's discussion 'Leaving members, deleting content, Archive feature'
"No response from Allison or Eric as of yet.  I had sent Eric Seuez an e-mail and expected…"
7 hours ago
Rosemary Burns joined Allison Leahy's group
Thumbnail

The Sandbox

Join The Sandbox to experiment with Ning 3.0 now!The Ning Team will be triaging bug reports and…See More
9 hours ago
Profile IconNing via Facebook
Thumbnail

The Ning Platform explained in a bakers dozen of pretty slides. Enjoy!…

See More
Facebook10 hours ago · Reply
Allison Leahy joined arqueologiadigital.com's group
Thumbnail

Criadores Brasileiros - Brazilian Creators

Grupo para todas as redes Brasileiras do Ning. (Group for all Ning Brazilian Networks).See More
10 hours ago
Elshara Silverheart replied to Elshara Silverheart's discussion 'Free Site Promotion'
"Like before, remember to include the full web address of your network so that it can get properly…"
10 hours ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service