<?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>Advanced CSS Design Resources - last-child.com &#187; overflow</title>
	<atom:link href="http://www.last-child.com/category/overflow/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.last-child.com</link>
	<description>CSS Toys for Professional Web Developers</description>
	<lastBuildDate>Thu, 08 Jul 2010 16:59:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Word wrapping for Internet Explorer</title>
		<link>http://www.last-child.com/word-wrapping-for-internet-explorer/</link>
		<comments>http://www.last-child.com/word-wrapping-for-internet-explorer/#comments</comments>
		<pubDate>Mon, 07 Aug 2006 16:52:55 +0000</pubDate>
		<dc:creator>Ted</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[IE7]]></category>
		<category><![CDATA[atmedia]]></category>
		<category><![CDATA[overflow]]></category>

		<guid isPermaLink="false">http://www.last-child.com/word-wrapping-for-internet-explorer/</guid>
		<description><![CDATA[One of the @media seminars this year prompted me to ask a question to the Europeans about forcing text-wrapping on really long words. We&#8217;ve been having a problem on Yahoo! Tech with people pasting urls into their comments, questions, and reviews. These long urls want to extend past the containers and we have had to [...]]]></description>
			<content:encoded><![CDATA[<p>
One of the <a href="http://www.vivabit.com/atmedia2006/">@media</a> seminars this year prompted me to ask a question to the Europeans about forcing text-wrapping on really long words. We&#8217;ve been having a problem on Yahoo! Tech with people pasting urls into their comments, questions, and reviews. These long urls want to extend past the containers and we have had to set a width to the container and overflow:hidden to hide what is too long.  How, I asked, do they handle translations with really long words?</p>
<p>
<a href="http://szafranek.net/">Krzysztof Szafranek</a> caught up with me later and told me about the IE-only CSS rules that allow this.  I had a bug come up on one of our pages in IE and so I got in touch with him recently for that bit of advice again. It&#8217;s pretty simple, you can define in your IE6.css file to either wrap these words or truncate and add an ellipses.  These are proprietary, so they won&#8217;t work in other browsers and may cause validation errors. But that&#8217;s what your <a href="http://www.last-child.com/preparing-for-ie7-hacks-and-conditional-comments/">ie6.css and ie7.css</a> style sheets are for anyways, right?</p>
<h4>Wordwrap</h4>
<p><code lang="CSS"><br />
div.IEwrap {<br />
border: 1px solid red;<br />
margin: 10px;<br />
width: 50px;<br />
overflow: hidden;<br />
}<br />
#break {<br />
word-break: break-all;<br />
}<br />
</code></p>
<h4>Truncate the word</h4>
<p><code lang="CSS"></p>
<p>div.IEwrap {<br />
border: 1px solid red;<br />
margin: 10px;<br />
width: 50px;<br />
overflow: hidden;<br />
}<br />
#ellipsis {<br />
text-overflow: ellipsis;<br />
}<br />
</code></p>
<p>Big thanks to Krzysztof Szafranek for pointing this out and sending me the sample code.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.last-child.com/word-wrapping-for-internet-explorer/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Control form button width in IE6</title>
		<link>http://www.last-child.com/control-form-button-width-in-ie6/</link>
		<comments>http://www.last-child.com/control-form-button-width-in-ie6/#comments</comments>
		<pubDate>Wed, 19 Apr 2006 00:03:59 +0000</pubDate>
		<dc:creator>Ted</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Form Button]]></category>
		<category><![CDATA[Quick Tips]]></category>
		<category><![CDATA[background]]></category>
		<category><![CDATA[border]]></category>
		<category><![CDATA[overflow]]></category>
		<category><![CDATA[padding]]></category>

		<guid isPermaLink="false">http://www.last-child.com/control-form-button-width-in-ie6/</guid>
		<description><![CDATA[I&#8217;m working on a project with shiny, happy submit buttons all over the place. To offer more control over the presentation, we are using the form button element and inserting images inside the button tags. ... Now, you need to over-ride some pretty ugly default presentation styles: form button {padding:0; margin:0; border:none; background:0;} This works [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m working on a project with shiny, happy submit buttons all over the place. To offer more control over the presentation, we are using the form button element and inserting images inside the button tags.<br />
<code lang="HTML"></p>
<form>
...<br />
<button type="submit" name="submit" id="submit"><br />
<img src="submit.png" alt="submit" /><br />
</button><br />
</form>
<p></code></p>
<p>Now, you need to over-ride some pretty ugly default presentation styles:</p>
<p><code lang="CSS"><br />
form button {padding:0; margin:0; border:none; background:0;}<br />
</code></p>
<p>This works fine and dandy until you get to IE6. The buttons tend to get really large with IE. So, you need to re-define the width of the buttons and apply overflow:visible. Here&#8217;s the entry in your IE6.css file:<br />
<code lang="CSS"><br />
form button {width:1%; overflow:visible;}<br />
</code></p>
<h3>Resources</h3>
<p>Special thanks to <a href="http://jehiah.com/archive/button-width-in-ie">Jehiah Czebotar</a> for saving me a bunch of time trying to figure this out.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.last-child.com/control-form-button-width-in-ie6/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
