<?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>ChristopherCasper.com &#187; Uncategorized</title>
	<atom:link href="http://christophercasper.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://christophercasper.com</link>
	<description>Who me?</description>
	<lastBuildDate>Mon, 06 Feb 2012 17:39:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>CSS word-wrap on a legend</title>
		<link>http://christophercasper.com/2011/04/css-word-wrap-on-a-legend/</link>
		<comments>http://christophercasper.com/2011/04/css-word-wrap-on-a-legend/#comments</comments>
		<pubDate>Fri, 08 Apr 2011 19:03:14 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://christophercasper.com/?p=53</guid>
		<description><![CDATA[Legend elements are extremely tricky to get styled right across browsers. I&#8217;ve come across the issue on several occasions where I need the text inside the legend to wrap lines when it&#8217;s too long. Here is an example: All we &#8230; <a href="http://christophercasper.com/2011/04/css-word-wrap-on-a-legend/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Legend elements are extremely tricky to get styled right across browsers. I&#8217;ve come across the issue on several occasions where I need the text inside the legend to wrap lines when it&#8217;s too long. Here is an example:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;fieldset&gt;
  &lt;legend class=&quot;someclass&quot;&gt;Some text that needs to wrap because its too long.&lt;/legend&gt;
&lt;/fieldset&gt;&lt;/code&gt;
</pre>
<p>All we need to do now is just wrap the text inside the legend within a span tag like so:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;fieldset&gt;
  &lt;legend class=&quot;soemclass&quot;&gt;&lt;span&gt;Some text that needs to wrap because its too long.&lt;/span&gt;&lt;/legend&gt;
&lt;/fieldset&gt;
</pre>
<p>Add some css to target the span:</p>
<pre class="brush: css; title: ; notranslate">
legend.someclass span {
  word-wrap: normal;
  white-space: normal;
}
</pre>
<p>That&#8217;s it!</p>
]]></content:encoded>
			<wfw:commentRss>http://christophercasper.com/2011/04/css-word-wrap-on-a-legend/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

