<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Web Style Press, Best Practices from all the Web, Build Better Websites &#187; wrap</title>
	<atom:link href="http://www.webstylepress.com/tag/wrap/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webstylepress.com</link>
	<description>Web VS Style</description>
	<lastBuildDate>Mon, 26 Dec 2011 10:35:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Wrapping Text &#8211; Breaking Text with No Spaces into New Line</title>
		<link>http://www.webstylepress.com/wrapping-text/</link>
		<comments>http://www.webstylepress.com/wrapping-text/#comments</comments>
		<pubDate>Mon, 08 Sep 2008 16:16:40 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Web Tips]]></category>
		<category><![CDATA[wrap]]></category>

		<guid isPermaLink="false">http://www.webstylepress.com/?p=53</guid>
		<description><![CDATA[Text like, a b c d e f and so on written in HTML will do fine in any browser, we all know that. What about the following! abcdefghijklmnopqrstuvwxyz&#8230;.NoWordBreaksAndSentenceGoesOnAndOn&#8230; The text with no spaces. If there are no breaks in words then the sentence will proceed straight and cause horizontal scroll in web page. In [...]<p><a href="http://www.webstylepress.com/wrapping-text/">Wrapping Text &#8211; Breaking Text with No Spaces into New Line</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Text like, <strong>a b c d e f and so on</strong> written in HTML will do fine in any browser, we all know that.</p>
<p>What about the following!<br />
<strong>abcdefghijklmnopqrstuvwxyz&#8230;.NoWordBreaksAndSentenceGoesOnAndOn&#8230;</strong><br />
The text with no spaces.</p>
<p>If there are no breaks in words then the sentence will proceed straight and cause horizontal scroll in web page. In blogs or in any other applications where users can comment or put some data, they can write such spam or anything that can cause your web page layout to break. We have a solution to that. Write text in pre tag and apply following CSS to it.</p>
<p><span id="more-41"></span></p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">pre <span style="color: #00AA00;">&#123;</span>
 overflow-x<span style="color: #00AA00;">:</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Use horizontal scroller if needed; for Firefox 2, not needed in Firefox 3 */</span>
 <span style="color: #000000; font-weight: bold;">white-space</span><span style="color: #00AA00;">:</span> pre-wrap<span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* css-3 */</span>
 <span style="color: #000000; font-weight: bold;">white-space</span><span style="color: #00AA00;">:</span> -moz-pre-wrap !important<span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Mozilla, since 1999 */</span>
 <span style="color: #000000; font-weight: bold;">white-space</span><span style="color: #00AA00;">:</span> -pre-wrap<span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Opera 4-6 */</span>
 <span style="color: #000000; font-weight: bold;">white-space</span><span style="color: #00AA00;">:</span> -o-pre-wrap<span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Opera 7 */</span>
 <span style="color: #808080; font-style: italic;">/* width: 99%; */</span>
 word-wrap<span style="color: #00AA00;">:</span> break-word<span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Internet Explorer 5.5+ */</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>This will fix the problem and in IE it will cause line break and avoid horizontal scroll while in Mozilla Firefox it will add an inline frame and put all the data in it.</p>
<p><a href='http://www.webstylepress.com/wp-content/uploads/2008/09/wrapped.rar'>Download Example</a><br />
<a rel="nofollow" target="_blank" href="http://www.longren.org/2006/09/27/wrapping-text-inside-pre-tags/" target="_blank">More Detail and Examples</a></p>
<p><a href="http://www.webstylepress.com/wrapping-text/">Wrapping Text &#8211; Breaking Text with No Spaces into New Line</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://www.webstylepress.com/modern-font-styles-for-websites/" title="Modern Font Styles For Websites">Modern Font Styles For Websites</a></li><li><a href="http://www.webstylepress.com/w3c-validation-tips/" title="W3C Validation Tips and Best Practices">W3C Validation Tips and Best Practices</a></li><li><a href="http://www.webstylepress.com/lorem-ipsum-ready/" title="Lorem ipsum Ready to Use">Lorem ipsum Ready to Use</a></li><li><a href="http://www.webstylepress.com/use-any-font-in-webpages-as-text/" title="Use Any Font in Webpages As Text">Use Any Font in Webpages As Text</a></li><li><a href="http://www.webstylepress.com/change-image-opacity-easily-using-css-js/" title="Change Image Opacity Easily Using CSS or JS">Change Image Opacity Easily Using CSS or JS</a></li><li><a href="http://www.webstylepress.com/css-maximum-benefits/" title="How to Gain Maximum from CSS">How to Gain Maximum from CSS</a></li><li><a href="http://www.webstylepress.com/rounded-div-without-images/" title="Create Rounded Flexible Div Without Images">Create Rounded Flexible Div Without Images</a></li><li><a href="http://www.webstylepress.com/astyle-visual-css-editor/" title="Astyle Visual CSS Editor">Astyle Visual CSS Editor</a></li><li><a href="http://www.webstylepress.com/superscript-and-subscript/" title="What is Superscript and Subscript in HTML">What is Superscript and Subscript in HTML</a></li><li><a href="http://www.webstylepress.com/list-style-types/" title="List Style Types Examples and Best Practices">List Style Types Examples and Best Practices</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.webstylepress.com/wrapping-text/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

