<?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>Wizzard Blog - Recent news about us, web design, development, portfolio &#187; Code Hints</title>
	<atom:link href="http://wizzard.bg/blog/category/code-hints/feed/" rel="self" type="application/rss+xml" />
	<link>http://wizzard.bg/blog</link>
	<description>Wizzard Bulgaria - Blog for web development, web design and our portfolio</description>
	<lastBuildDate>Tue, 27 Apr 2010 20:33:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Breaking text line in table cell</title>
		<link>http://wizzard.bg/blog/2009/09/breaking-text-line-in-table-cell/</link>
		<comments>http://wizzard.bg/blog/2009/09/breaking-text-line-in-table-cell/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 13:36:04 +0000</pubDate>
		<dc:creator>Plamen Nikolov</dc:creator>
				<category><![CDATA[Code Hints]]></category>
		<category><![CDATA[Browsers]]></category>
		<category><![CDATA[fix]]></category>

		<guid isPermaLink="false">http://wizzard.bg/blog/?p=43</guid>
		<description><![CDATA[Somehow, breaking a text line in HTML table cell is not often as easy as it should be.
For example, you have specified fixed width to your table cell, but the text inside makes the cell wider&#8230; This seems to be major problem.
Normally using &#60;br&#62; or &#60;br /&#62; (HTML and XHTML version) is enough to break [...]]]></description>
			<content:encoded><![CDATA[<p>Somehow, breaking a text line in HTML table cell is not often as easy as it should be.<br />
For example, you have specified fixed width to your table cell, but the text inside makes the cell wider&#8230; This seems to be major problem.</p>
<p>Normally using <strong>&lt;br&gt;</strong> or <strong>&lt;br /&gt; </strong>(HTML and XHTML version) is enough to break the text line in most recent versions of Internet Explorer(IE). The line break problem occurs in <strong>Mozilla Firefox</strong>, <strong>Google Chrome</strong>. Despite their versions, using the normal <strong>break line</strong> tag seems not to work  in these browsers. The solution we were looking for was a <strong>CSS</strong> property.</p>
<p>So after a few attempts breaking line in a <strong>&lt;td&gt;</strong> we come out with this solution:</p>
<div class="codecolorer-container css blackboard" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #808080; font-style: italic;">/* Wizzard Bulgaria */</span><br />
<br />
table tr td<br />
<span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">white-space</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">normal</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<p>This code make the Mozilla Firefox to break the text in the &lt;td&gt; according to the table cell width and where the <strong>&lt;br&gt;</strong> or <strong>&lt;br /&gt;</strong> tag is placed.</p>
]]></content:encoded>
			<wfw:commentRss>http://wizzard.bg/blog/2009/09/breaking-text-line-in-table-cell/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

