<?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>Keyboard Face &#187; CSS</title>
	<atom:link href="http://www.keyboardface.com/archives/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.keyboardface.com</link>
	<description>when you find QWERTY imprinted on your cheek - it&#039;s time to go to bed.</description>
	<lastBuildDate>Sat, 03 Dec 2011 17:36:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>JQuery UI hiding CSS Menus in IE</title>
		<link>http://www.keyboardface.com/archives/2010/10/20/jquery-ui-hiding-css-menus-in-ie/</link>
		<comments>http://www.keyboardface.com/archives/2010/10/20/jquery-ui-hiding-css-menus-in-ie/#comments</comments>
		<pubDate>Wed, 20 Oct 2010 20:31:02 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[css menus]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[jquery ui]]></category>

		<guid isPermaLink="false">http://www.keyboardface.com/archives/2010/10/20/jquery-ui-hiding-css-menus-in-ie/</guid>
		<description><![CDATA[We have some nice CSS flyout menus on a site I&#8217;m working on now. Unfortunately in IE7 and IE8, JQuery UI&#8217;s tabs are being displayed above the flyout menus, making it look like flyouts are appearing underneath the tabs &#8211; not what we want. After much digging through code, firebugging, etc., I figured out that [...]]]></description>
			<content:encoded><![CDATA[<p>We have some nice CSS flyout menus on a site I&#8217;m working on now. Unfortunately in IE7 and IE8, JQuery UI&#8217;s tabs are being displayed above the flyout menus, making it look like flyouts are appearing underneath the tabs &#8211; not what we want. </p>
<p>After much digging through code, firebugging, etc., I figured out that the problem has to do with position:relative and position:absolute. </p>
<p>It would appear that position:relative will trump position:absolute no matter what the z-index.  Very confusing and frustrating. </p>
<p>The fix I ended up using was to add a inline style of position:static on the tags that were being made relative. This fixed it and I didn&#8217;t have to edit the JQueryUI generated CSS.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.keyboardface.com/archives/2010/10/20/jquery-ui-hiding-css-menus-in-ie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE 7 clear:both not working</title>
		<link>http://www.keyboardface.com/archives/2010/03/16/ie-7-clearboth-not-working/</link>
		<comments>http://www.keyboardface.com/archives/2010/03/16/ie-7-clearboth-not-working/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 19:03:54 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.keyboardface.com/archives/2010/03/16/ie-7-clearboth-not-working/</guid>
		<description><![CDATA[IE7 apparently has a bug where clear:both doesn&#8217;t work correctly. It would work periodically if I refreshed the page, but that doesn&#8217;t give any consistency. Took awhile to find the solution, but here it is: Set the parent element to have height:100%. It should work now. For clarity sake, here&#8217;s some sample code: &#60;div style="height:100%"&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>IE7 apparently has a bug where clear:both doesn&#8217;t work correctly. It would work periodically if I refreshed the page, but that doesn&#8217;t give any consistency. Took awhile to find the solution, but here it is: </p>
<p>Set the parent element to have height:100%. It should work now. For clarity sake, here&#8217;s some sample code:<br />
<code>&lt;div style="height:100%"&gt;<br />
&lt;div style="float:left;width:100px;"&gt;left stuff&lt;/div&gt;<br />
&lt;div style="float:right;width:100px;"&gt;right stuff&lt;/div&gt;<br />
&lt;div style="clear:both;"&gt;Clear&lt;/div&gt;<br />
&lt;/div&gt;</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.keyboardface.com/archives/2010/03/16/ie-7-clearboth-not-working/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Horizontal CSS Menu Essential</title>
		<link>http://www.keyboardface.com/archives/2010/02/15/horizontal-css-menu-essential/</link>
		<comments>http://www.keyboardface.com/archives/2010/02/15/horizontal-css-menu-essential/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 02:22:34 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.keyboardface.com/archives/2010/02/15/horizontal-css-menu-essential/</guid>
		<description><![CDATA[What makes a horizontal UL CSS Menu horizontal? This one line: li { display:inline; } That&#8217;s it. The rest is just decoration and making it look right.]]></description>
			<content:encoded><![CDATA[<p>What makes a horizontal UL CSS Menu horizontal? </p>
<p>This one line: </p>
<p>li {<br />
display:inline;<br />
}</p>
<p>That&#8217;s it. The rest is just decoration and making it look right. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.keyboardface.com/archives/2010/02/15/horizontal-css-menu-essential/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Safari CSS Background Not Displaying</title>
		<link>http://www.keyboardface.com/archives/2010/01/29/safari-css-background-not-displaying/</link>
		<comments>http://www.keyboardface.com/archives/2010/01/29/safari-css-background-not-displaying/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 16:50:53 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.keyboardface.com/archives/2010/01/29/safari-css-background-not-displaying/</guid>
		<description><![CDATA[Weird error today I thought worth posting the solution to. If your style sheet has this line at the top Safari won&#8217;t display certain background colors. @charset &#8220;utf-8&#8243;; When you create an HTML file in Dreamweaver and add CSS directly to the HTML file, it will automatically insert this into the style section. If you [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.keyboardface.com/wp-content/uploads/2010/01/safari.jpg" alt="safari" title="safari" width="253" height="244" class="alignright size-full wp-image-199" />Weird error today I thought worth posting the solution to. </p>
<p>If your style sheet has this line at the top Safari won&#8217;t display certain background colors. </p>
<p>@charset &#8220;utf-8&#8243;;</p>
<p>When you create an HTML file in Dreamweaver and add CSS directly to the HTML file, it will automatically insert this into the style section. If you then copy the entire style section and create an external stylesheet, it will then remove all of your background colors. Luckily, it&#8217;s an easy fix. Just remove the charset. It&#8217;s not needed for CSS unless you&#8217;re using a foriegn language that has non-ascii characters (in the code, not the text).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.keyboardface.com/archives/2010/01/29/safari-css-background-not-displaying/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Javascript and CSS Drop Downs over Flash?</title>
		<link>http://www.keyboardface.com/archives/2009/09/04/javascript-and-css-drop-downs-over-flash/</link>
		<comments>http://www.keyboardface.com/archives/2009/09/04/javascript-and-css-drop-downs-over-flash/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 23:08:21 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.keyboardface.com/archives/2009/09/04/javascript-and-css-drop-downs-over-flash/</guid>
		<description><![CDATA[I long thought it impossible to have a drop down fall over a flash movie as you would often want in a header of a website. However, I just saw a website where they accomplished this. After investigating, I found a JQuery library that allows you to do this. It involves a new way of [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://flowplayer.org/tools/demos/flashembed/wmode.html"><img src="http://www.keyboardface.com/wp-content/uploads/2009/09/Untitled-1.jpg" alt="JQueryTools FlashEmbed" title="JQueryTools FlashEmbed" width="500" height="160" class="alignnone size-full wp-image-172" /></a></p>
<p>I long thought it impossible to have a drop down fall over a flash movie as you would often want in a header of a website. </p>
<p>However, I just saw a website where they accomplished this. After investigating, I found a JQuery library that allows you to do this. </p>
<p>It involves a new way of embedding flash into pages. With just a div tag and a few lines of javascript you can easily embed flash AND have the opportunity to display drop downs over them. </p>
<p>Here&#8217;s the link showing it in action:<br />
<a href="http://flowplayer.org/tools/demos/flashembed/wmode.html">http://flowplayer.org/tools/demos/flashembed/wmode.html</a></p>
<p>If you know of any other ways, please pipe up and let us know.</p>
<p>Here&#8217;s another link for a great CSS drop down menu:<br />
<a href="http://htmldog.com/articles/suckerfish/dropdowns/">http://htmldog.com/articles/suckerfish/dropdowns/</a></p>
<p><b>Update</b><br />
It turns out that it&#8217;s not the awesomeness of jquery tools that allows you to do this. It&#8217;s simply a parameter wmode=transparent that allows it. Jquery tools does look really cool, however. </p>
<p>Another good link for CSS menus is <a href="http://purecssmenu.com/">http://purecssmenu.com/</a> It is an online CSS menu generator.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.keyboardface.com/archives/2009/09/04/javascript-and-css-drop-downs-over-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS: Default Padding/Margin for a p element</title>
		<link>http://www.keyboardface.com/archives/2009/08/05/css-default-paddingmargin-for-a-p-element/</link>
		<comments>http://www.keyboardface.com/archives/2009/08/05/css-default-paddingmargin-for-a-p-element/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 23:39:31 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.keyboardface.com/archives/2009/08/05/css-default-paddingmargin-for-a-p-element/</guid>
		<description><![CDATA[Resetting your css styles is a good thing to do to ensure that your site is rendered the same on all browsers. Unfortunately, this often wipes out the default p tag padding and margin. The following style will restore a p to it&#8217;s normal margin (it doesn&#8217;t have a padding). Each browser styles the p [...]]]></description>
			<content:encoded><![CDATA[<p>Resetting your css styles is a good thing to do to ensure that your site is rendered the same on all browsers. </p>
<p>Unfortunately, this often wipes out the default p tag padding and margin. The following style will restore a p to it&#8217;s normal margin (it doesn&#8217;t have a padding). </p>
<p>Each browser styles the p tag differently, thus this restores it to what it would look like in Firefox, creating a uniform look. Exactly what we&#8217;re going for.<br />
<code>p{<br />
margin: 1em 0px;<br />
}</code></p>
<p><a href="http://stackoverflow.com/questions/819161/what-is-the-default-padding-and-or-margin-for-a-p-element-reset-css">Source</a></p>
<p>Here&#8217;s a link on how to use CSS Style Resets correctly:<br />
<a href="http://sixrevisions.com/css/css-tips/css-tip-1-resetting-your-styles-with-css-reset/">Resetting Yoru Styles with CSS Reset</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.keyboardface.com/archives/2009/08/05/css-default-paddingmargin-for-a-p-element/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE5 and IE6 CSS Hacks</title>
		<link>http://www.keyboardface.com/archives/2009/07/07/ie5-and-ie6-css-hacks/</link>
		<comments>http://www.keyboardface.com/archives/2009/07/07/ie5-and-ie6-css-hacks/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 17:52:43 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.keyboardface.com/archives/2009/07/07/ie5-and-ie6-css-hacks/</guid>
		<description><![CDATA[Wow! That was annoying. As most know, IE5 and IE6 both tend to misinterpret standard CSS forcing us to resort to hacks designed to make them comply and display correctly. I just recently found two very useful resources when it comes to making div tags float and pad correctly: First explains and gives a fix [...]]]></description>
			<content:encoded><![CDATA[<p>Wow! That was annoying. As most know, IE5 and IE6 both tend to misinterpret standard CSS forcing us to resort to hacks designed to make them comply and display correctly. </p>
<p>I just recently found two very useful resources when it comes to making div tags float and pad correctly: </p>
<p>First explains and gives a fix for the odd fact that IE5 and IE6 will double the left margin of an element that has a float:left in it.</p>
<p>The fix is awesomely simple. You just set display:inline;.</p>
<p><a href="http://www.positioniseverything.net/explorer/doubled-margin.html">http://www.positioniseverything.net/explorer/doubled-margin.html</a></p>
<p>The other explains gives a fix for the fact that IE5 and IE6 treat padding differently. Per CSS specifications, padding should add to the overall width. So, if you have a 100px div tag with 20px padding on all sides, it should be 140px wide. </p>
<p>The previous versions of IE keep the width exactly and simply pad inward rather than outward. All fine and dandy, except all other browsers don&#8217;t. </p>
<p>This is a bit more complicated, here&#8217;s the overall hack:<br />
<code>div.content {<br />
 width:400px;<br />
 voice-family: "\"}\"";<br />
 voice-family:inherit;<br />
 width:300px;<br />
}<br />
  /* CSS1 UAs should see and use 2nd width */</p>
<p>html&gt;body .content { width:300px } </code></p>
<p><a href="http://tantek.com/CSS/Examples/boxmodelhack.html">http://tantek.com/CSS/Examples/boxmodelhack.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.keyboardface.com/archives/2009/07/07/ie5-and-ie6-css-hacks/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>IE6 Double Margin</title>
		<link>http://www.keyboardface.com/archives/2009/01/11/ie6-double-margin/</link>
		<comments>http://www.keyboardface.com/archives/2009/01/11/ie6-double-margin/#comments</comments>
		<pubDate>Mon, 12 Jan 2009 06:05:18 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.keyboardface.com/archives/2011/01/11/ie6-double-margin/</guid>
		<description><![CDATA[IE6 has an odd phenomenon where when you use a float:left, it will double the margin-left. To get around it, use display:inline;. http://www.positioniseverything.net/explorer/floatIndent.html]]></description>
			<content:encoded><![CDATA[<p>IE6 has an odd phenomenon where when you use a float:left, it will double the margin-left. To get around it, use display:inline;. </p>
<p><a href="http://www.positioniseverything.net/explorer/floatIndent.html">http://www.positioniseverything.net/explorer/floatIndent.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.keyboardface.com/archives/2009/01/11/ie6-double-margin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

