<?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>beThinker Concepts - Knowledge in many different ways &#187; CSS Hack</title>
	<atom:link href="http://www.bethinkerconcepts.com/category/css-hack/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bethinkerconcepts.com</link>
	<description>beThinkerConcepts.com is a variaty of tutorials that help improve those beginner in web development.</description>
	<lastBuildDate>Mon, 29 Mar 2010 14:17:46 +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>Implement :first-child for IE6</title>
		<link>http://www.bethinkerconcepts.com/2009/10/ie6-first-child-hack/</link>
		<comments>http://www.bethinkerconcepts.com/2009/10/ie6-first-child-hack/#comments</comments>
		<pubDate>Sat, 10 Oct 2009 03:05:11 +0000</pubDate>
		<dc:creator>beThinker</dc:creator>
				<category><![CDATA[CSS Hack]]></category>
		<category><![CDATA[fist-child]]></category>
		<category><![CDATA[IE6]]></category>
		<category><![CDATA[Pseudo]]></category>
		<category><![CDATA[Pseudo Classes]]></category>

		<guid isPermaLink="false">http://www.bethinkerconcepts.com/?p=107</guid>
		<description><![CDATA[Lots of CSS hack for :first-child but I used this one because it work. I&#8217;m using list tag for my menu and it look like this in the HTML.
123456&#60;ul&#62;
&#160; &#160; &#60;li id=&#34;imageBorder&#34;&#62;Menu1&#60;/li&#62;
&#160; &#160; &#60;li id=&#34;imageBorder&#34;&#62;Menu2&#60;/li&#62;
&#160; &#160; &#60;li id=&#34;imageBorder&#34;&#62;Menu3&#60;/li&#62;
&#160; &#160; &#60;li id=&#34;imageBorder&#34;&#62;Menu4&#60;/li&#62;
&#60;/ul&#62;

Regular CSS for FF, IE7, Opera, Safari:
Image border:
123456789#menu ul li#imageBorder{
&#160; &#160; &#160;background-image:url(../images/border.jpg);
&#160; &#160; &#160;background-repeat:no-repeat();
&#160; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>Lots of CSS hack for :first-child but I used this one because it work. I&#8217;m using list tag for my menu and it look like this in the HTML.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;ul&gt;<br />
&nbsp; &nbsp; &lt;li id=&quot;imageBorder&quot;&gt;Menu1&lt;/li&gt;<br />
&nbsp; &nbsp; &lt;li id=&quot;imageBorder&quot;&gt;Menu2&lt;/li&gt;<br />
&nbsp; &nbsp; &lt;li id=&quot;imageBorder&quot;&gt;Menu3&lt;/li&gt;<br />
&nbsp; &nbsp; &lt;li id=&quot;imageBorder&quot;&gt;Menu4&lt;/li&gt;<br />
&lt;/ul&gt;</div></td></tr></tbody></table></div>
<p><span id="more-107"></span><br />
Regular CSS for FF, IE7, Opera, Safari:</p>
<p>Image border:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">#menu ul li#imageBorder{<br />
&nbsp; &nbsp; &nbsp;background-image:url(../images/border.jpg);<br />
&nbsp; &nbsp; &nbsp;background-repeat:no-repeat();<br />
&nbsp; &nbsp; &nbsp;width:1px;<br />
&nbsp; &nbsp; &nbsp;height:10px;<br />
}<br />
#menu ul li#imageBorder:first-child{<br />
&nbsp; &nbsp; &nbsp;background-image:none;<br />
}</div></td></tr></tbody></table></div>
<p>Regular border:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">#menu ul li{<br />
&nbsp; &nbsp; border:1px solid #000;<br />
}<br />
#menu ul li:first-child{<br />
&nbsp; &nbsp; border:none;<br />
}</div></td></tr></tbody></table></div>
<p>The above code :first-child won&#8217;t work in IE6, so for IE6 CSS hack the code are:</p>
<p>CSS for IE 6 (using conditional comments)</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;!--[if IE6]&gt;<br />
#menu ul li#imageBorder{background-image:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; expression(this.previousSibling==null?'none':(this.parentNode.id=='id')?'image path':'-');<br />
}<br />
#menu ul li{border:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; expression(this.previousSibling==null?'0':(this.parentNode.id=='id')?'1':'-');<br />
}<br />
&lt;![endif]--&gt;</div></td></tr></tbody></table></div>
<p>There are various CSS hack in web, look for the best that work in your website.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bethinkerconcepts.com/2009/10/ie6-first-child-hack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
