<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Limit width of text in characters</title>
	<atom:link href="http://www.scriptygoddess.com/archives/2003/06/03/limit-width-of-text-in-characters/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scriptygoddess.com/archives/2003/06/03/limit-width-of-text-in-characters/</link>
	<description></description>
	<pubDate>Wed, 08 Oct 2008 11:07:28 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: Dave</title>
		<link>http://www.scriptygoddess.com/archives/2003/06/03/limit-width-of-text-in-characters/#comment-11959</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Wed, 30 Jun 2004 13:05:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/06/03/limit-width-of-text-in-characters/#comment-11959</guid>
		<description>One useful application of this is a way to limit the maximum width of text. Text with more than 50-80 characters per line is hard to read. Now, while not all browsers support this, those that are using browsers that do will have a better experience on a site. It is especially useful on liquid sites, where on large resolutions the text becomes very hard to read.

content {
max-width: 40em;
}</description>
		<content:encoded><![CDATA[<p>One useful application of this is a way to limit the maximum width of text. Text with more than 50-80 characters per line is hard to read. Now, while not all browsers support this, those that are using browsers that do will have a better experience on a site. It is especially useful on liquid sites, where on large resolutions the text becomes very hard to read.</p>
<p>content {<br />
max-width: 40em;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fuddland</title>
		<link>http://www.scriptygoddess.com/archives/2003/06/03/limit-width-of-text-in-characters/#comment-9941</link>
		<dc:creator>fuddland</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/06/03/limit-width-of-text-in-characters/#comment-9941</guid>
		<description>&lt;trackback /&gt;&lt;strong&gt;no more overlap&lt;/strong&gt;
i've hopefully finally fixed that irksome problem of the sidebar overlapping the posts if the user's browser text-size is set...
</description>
		<content:encoded><![CDATA[<trackback /><strong>no more overlap</strong><br />
i&#039;ve hopefully finally fixed that irksome problem of the sidebar overlapping the posts if the user&#039;s browser text-size is set&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jennifer</title>
		<link>http://www.scriptygoddess.com/archives/2003/06/03/limit-width-of-text-in-characters/#comment-9938</link>
		<dc:creator>Jennifer</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/06/03/limit-width-of-text-in-characters/#comment-9938</guid>
		<description>Excellent! Thanks Lloyd! Just what I was looking for. :)</description>
		<content:encoded><![CDATA[<p>Excellent! Thanks Lloyd! Just what I was looking for. <img src='http://www.scriptygoddess.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jake</title>
		<link>http://www.scriptygoddess.com/archives/2003/06/03/limit-width-of-text-in-characters/#comment-9939</link>
		<dc:creator>Jake</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/06/03/limit-width-of-text-in-characters/#comment-9939</guid>
		<description>awesome! Thanks for the tip!</description>
		<content:encoded><![CDATA[<p>awesome! Thanks for the tip!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arve</title>
		<link>http://www.scriptygoddess.com/archives/2003/06/03/limit-width-of-text-in-characters/#comment-9940</link>
		<dc:creator>Arve</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/06/03/limit-width-of-text-in-characters/#comment-9940</guid>
		<description>While ex theoretically is a fine suggestion, please remember that Mozilla handles ex differently from other browsers, so your results many not be entirely what you expect.

In Mozilla, an ex is relative to the fonts aspect ratio, and varies with which font you use, while in MSIE, Opera and Safari/Konqueror, 1ex = 0.5em.  &lt;a href="http://www.xs4all.nl/~sbpoley/webmatters/emex.html"&gt;http://www.xs4all.nl/~sbpoley/webmatters/emex.html&lt;/a&gt; goes in more detail on this.

My suggestion?  If you want a &#60;pre&#62; that's 15 characters wide, use 7.5em for it's width.</description>
		<content:encoded><![CDATA[<p>While ex theoretically is a fine suggestion, please remember that Mozilla handles ex differently from other browsers, so your results many not be entirely what you expect.</p>
<p>In Mozilla, an ex is relative to the fonts aspect ratio, and varies with which font you use, while in MSIE, Opera and Safari/Konqueror, 1ex = 0.5em.  <a href="http://www.xs4all.nl/~sbpoley/webmatters/emex.html">http://www.xs4all.nl/~sbpoley/webmatters/emex.html</a> goes in more detail on this.</p>
<p>My suggestion?  If you want a &lt;pre&gt; that&#039;s 15 characters wide, use 7.5em for it&#039;s width.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lloyd Dalton</title>
		<link>http://www.scriptygoddess.com/archives/2003/06/03/limit-width-of-text-in-characters/#comment-9937</link>
		<dc:creator>Lloyd Dalton</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/06/03/limit-width-of-text-in-characters/#comment-9937</guid>
		<description>By "text box" are you talking about a form input, or just a &#60;div&#62; with text inside?

You can use the "width:??ex" css property, to set an element's width to some number of characters.  Where ?? is the number of characters.   "ex" is the width of the letter "x" in the current font &#038; size.

See &lt;a href="http://www.htmlhelp.com/reference/css/units.html#length"&gt;this page&lt;/a&gt; for more information on css widths:

Example:

&lt;h3&gt;

&#60; div style="width:15ex;margin:20px;padding:5px;border:1px solid #000000;" &#62;
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Fusce varius. Nullam quam. Suspendisse potenti. Vivamus et nibh. Duis volutpat dolor in ipsum.
&#60;/div&#62;

&lt;/h3&gt;</description>
		<content:encoded><![CDATA[<p>By &#034;text box&#034; are you talking about a form input, or just a &lt;div&gt; with text inside?</p>
<p>You can use the &#034;width:??ex&#034; css property, to set an element&#039;s width to some number of characters.  Where ?? is the number of characters.   &#034;ex&#034; is the width of the letter &#034;x&#034; in the current font &#038; size.</p>
<p>See <a href="http://www.htmlhelp.com/reference/css/units.html#length">this page</a> for more information on css widths:</p>
<p>Example:</p>
<h3>
<p>&lt; div style=&#034;width:15ex;margin:20px;padding:5px;border:1px solid #000000;&#034; &gt;<br />
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Fusce varius. Nullam quam. Suspendisse potenti. Vivamus et nibh. Duis volutpat dolor in ipsum.<br />
&lt;/div&gt;</p>
</h3>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.322 seconds -->
