<?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>squirrel_factory &#187; css</title>
	<atom:link href="http://www.flamingsquirrel.co.uk/blog/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.flamingsquirrel.co.uk/blog</link>
	<description>Creative development</description>
	<lastBuildDate>Wed, 15 Apr 2009 09:06:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>IE6 and 7 whitespace bug</title>
		<link>http://www.flamingsquirrel.co.uk/blog/ie6-and-7-whitespace-bug/</link>
		<comments>http://www.flamingsquirrel.co.uk/blog/ie6-and-7-whitespace-bug/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 09:02:52 +0000</pubDate>
		<dc:creator>andy</dc:creator>
				<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://www.flamingsquirrel.co.uk/blog/?p=42</guid>
		<description><![CDATA[IE 6 and IE7 often display whitespace underneath images and &#60;li&#62; tags (when all other browsers do not) . The best way to solve this is to add either or both of the css rules:
display:inline-block;
display:block;
The alternative method is to remove all space between tags within your html document, however this makes the mark-up hard to read [...]]]></description>
			<content:encoded><![CDATA[<p>IE 6 and IE7 often display whitespace underneath images and &lt;li&gt; tags (when all other browsers do not) . The best way to solve this is to add either or both of the css rules:</p>
<p><code>display:inline-block;<br/><br />
display:block;</code></p>
<p>The alternative method is to remove all space between tags within your html document, however this makes the mark-up hard to read and edit!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.flamingsquirrel.co.uk/blog/ie6-and-7-whitespace-bug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS font shorthand</title>
		<link>http://www.flamingsquirrel.co.uk/blog/css-font-shorthand/</link>
		<comments>http://www.flamingsquirrel.co.uk/blog/css-font-shorthand/#comments</comments>
		<pubDate>Tue, 25 Mar 2008 12:03:27 +0000</pubDate>
		<dc:creator>andy</dc:creator>
				<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://www.flamingsquirrel.co.uk/blog/css-font-shorthand/</guid>
		<description><![CDATA[font-style: italic;
font-variant: small-caps;
font-weight: bold;
font-size: 1em;
line-height: 140%;
font-family: Helvetica, sans-serif;

/* Combined into one shorthand rule */
font: italic small-caps bold 1em/140% Helvetica, sans-serif;
]]></description>
			<content:encoded><![CDATA[<pre><code>font-style: italic;
font-variant: small-caps;
font-weight: bold;
font-size: 1em;
line-height: 140%;
font-family: Helvetica, sans-serif;

/* Combined into one shorthand rule */
font: italic small-caps bold 1em/140% Helvetica, sans-serif;</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.flamingsquirrel.co.uk/blog/css-font-shorthand/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lining up labels with radio/checkboxes</title>
		<link>http://www.flamingsquirrel.co.uk/blog/lining-up-labels-with-radiocheckboxes/</link>
		<comments>http://www.flamingsquirrel.co.uk/blog/lining-up-labels-with-radiocheckboxes/#comments</comments>
		<pubDate>Wed, 27 Feb 2008 11:20:36 +0000</pubDate>
		<dc:creator>andy</dc:creator>
				<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://www.flamingsquirrel.co.uk/blog/lining-up-labels-with-radiocheckboxes/</guid>
		<description><![CDATA[I used to battle with trying to line up labels horizontally with radio or checkboxes&#8230;. it never looked the same in all browsers.
Solution:
HTML:
&#60;ul class=&#8221;form-check&#8221;&#62;
&#60;li&#62;&#60;input name=&#8221;radio&#8221; type=&#8221;radio&#8221; value=&#8221;yes&#8221; /&#62;&#60;label&#62;Yes&#60;/label&#62;&#60;/li&#62;
&#60;li&#62;&#60;input name=&#8221;radio&#8221; type=&#8221;radio&#8221; value=&#8221;no&#8221; /&#62;&#60;label&#62;No&#60;/label&#62;&#60;/li&#62;
&#60;/ul&#62;
CSS:
ul.form-check{
padding: 0;
margin: 0;
}
ul.form-check li{
display: block;
list-style: none;
clear: both;
float: none;
height: auto;
overflow: auto;
background:#f2ffe4;
}
ul.form-check li input{
display: block;
float: left;
}
ul.form-check li label{
display: block;
margin-left: 0.4em;
margin-top: 0.1em;
float: left;
clear: right;
font-size:0.9em;
}
If you would like [...]]]></description>
			<content:encoded><![CDATA[<p>I used to battle with trying to line up labels horizontally with radio or checkboxes&#8230;. it never looked the same in all browsers.</p>
<p>Solution:</p>
<p><strong>HTML:</strong></p>
<p>&lt;ul class=&#8221;form-check&#8221;&gt;<br />
&lt;li&gt;&lt;input name=&#8221;radio&#8221; type=&#8221;radio&#8221; value=&#8221;yes&#8221; /&gt;&lt;label&gt;Yes&lt;/label&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;input name=&#8221;radio&#8221; type=&#8221;radio&#8221; value=&#8221;no&#8221; /&gt;&lt;label&gt;No&lt;/label&gt;&lt;/li&gt;<br />
&lt;/ul&gt;</p>
<p><strong>CSS:</strong></p>
<p>ul.form-check{<br />
padding: 0;<br />
margin: 0;<br />
}</p>
<p>ul.form-check li{<br />
display: block;<br />
list-style: none;<br />
clear: both;<br />
float: none;<br />
height: auto;<br />
overflow: auto;<br />
background:#f2ffe4;<br />
}</p>
<p>ul.form-check li input{<br />
display: block;<br />
float: left;<br />
}</p>
<p>ul.form-check li label{<br />
display: block;<br />
margin-left: 0.4em;<br />
margin-top: 0.1em;<br />
float: left;<br />
clear: right;<br />
font-size:0.9em;<br />
}</p>
<p>If you would like the list inline:</p>
<p>&lt;ul class=&#8221;form-check-inline&#8221;&gt;<br />
&lt;li&gt;&lt;input name=&#8221;checkbox&#8221; type=&#8221;checkbox&#8221; value=&#8221;" /&gt;&lt;label&gt;Option 1&lt;/label&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;input name=&#8221;checkbox&#8221; type=&#8221;checkbox&#8221; value=&#8221;" /&gt;&lt;label&gt;Option 2&lt;/label&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;input name=&#8221;checkbox&#8221; type=&#8221;checkbox&#8221; value=&#8221;" /&gt;&lt;label&gt;Option 3&lt;/label&gt;&lt;/li&gt;</p>
<p>&lt;/ul&gt;</p>
<p>ul.form-check-inline{<br />
padding: 0;<br />
margin: 0;<br />
}</p>
<p>ul.form-check-inline li{<br />
display: inline;<br />
list-style: none;<br />
float: none;<br />
height: auto;<br />
overflow: auto;<br />
background:pink;<br />
}</p>
<p>ul.form-check-inline li input{<br />
display: block;<br />
float: left;<br />
}</p>
<p>ul.form-check-inline li label{<br />
display: block;<br />
margin:1px 10px 0 0;<br />
float: left;<br />
clear: right;<br />
font-size:0.9em;<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>http://www.flamingsquirrel.co.uk/blog/lining-up-labels-with-radiocheckboxes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Styling an hr</title>
		<link>http://www.flamingsquirrel.co.uk/blog/styling-an/</link>
		<comments>http://www.flamingsquirrel.co.uk/blog/styling-an/#comments</comments>
		<pubDate>Mon, 25 Feb 2008 11:48:36 +0000</pubDate>
		<dc:creator>andy</dc:creator>
				<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://www.flamingsquirrel.co.uk/blog/styling-an/</guid>
		<description><![CDATA[I have always had problems with the &#60;hr/&#62; and getting it to look equally spacedbut this seems to work well across all browsers.
hr{
color:#76a2d7;
background-color:#76a2d7;
height:1px;
border:none;
margin:0 0 10px 0;
}
]]></description>
			<content:encoded><![CDATA[<p>I have always had problems with the &lt;hr/&gt; and getting it to look equally spacedbut this seems to work well across all browsers.</p>
<p>hr{<br />
color:#76a2d7;<br />
background-color:#76a2d7;<br />
height:1px;<br />
border:none;<br />
margin:0 0 10px 0;<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>http://www.flamingsquirrel.co.uk/blog/styling-an/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
