<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>Dimox.net - CSS, XHTML, jQuery and WordPress from Web Developer</title>
	
	<link>http://dimox.net</link>
	<description>CSS, XHTML, jQuery, WordPress</description>
	<lastBuildDate>Thu, 04 Mar 2010 12:21:26 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Dimox_net" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="dimox_net" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Simplest Universal jQuery Tabs Script</title>
		<link>http://dimox.net/simplest-universal-jquery-tabs-script/</link>
		<comments>http://dimox.net/simplest-universal-jquery-tabs-script/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 10:46:38 +0000</pubDate>
		<dc:creator>Dimox</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[tabs]]></category>

		<guid isPermaLink="false">http://dimox.net/?p=15</guid>
		<description><![CDATA[My experience with jQuery for today is about 2 years. I began to learn this nice framework after I found somewhere in Internet a script, which lets to create a tabbed blocks.

During this 2 years I gained my experience in jQuery and <strong>created my own jQuery Tabs Script</strong> completely from scratch. And I want to share it with you in this post.]]></description>
			<content:encoded><![CDATA[<p>My experience with jQuery for today is about 2 years. I began to learn this nice framework after I found somewhere in Internet a script, which lets to create a tabbed blocks.</p>
<p>During this 2 years I gained my experience in jQuery and <strong>created my own jQuery Tabs Script</strong> completely from scratch. And I want to share it with you in this post.</p>
<p>I call it an <strong>universal</strong>, because it lets to create an unlimited number of tabbed blocks with an unlimited number of tabs, while the contents of the script remains unchanged (script size is <strong>only 0.4 kilobytes</strong>).</p>
<h3>jQuery Tabs Script code</h3>
<p>In my opinion, I&#8217;ve made a miniature and pretty jQuery script for a tabs:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
$<span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
  $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'ul.tabs'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">each</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'li'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">each</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>i<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'current'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">siblings</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">removeClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'current'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #003366; font-weight: bold;">var</span> p <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">parents</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'div.section'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        p.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'div.box'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>opacity<span style="color: #339933;">:</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        p.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'div.box:eq('</span><span style="color: #339933;">+</span>i<span style="color: #339933;">+</span><span style="color: #3366CC;">')'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>opacity<span style="color: #339933;">:</span> <span style="color: #CC0000;">1</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">500</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">show</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span>jQuery<span style="color: #009900;">&#41;</span></pre></td></tr></table></div>

<h3>HTML code for the script</h3>
<p>It very similar on a structure of HTML code of another jQuery tabs solutions, which I was seen:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="html" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;section&quot;</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;tabs&quot;</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;current&quot;</span>&gt;</span>First Tab<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;</span>Second Tab<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">ul</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;box visible&quot;</span>&gt;</span>
    Content of the first block
  <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;box&quot;</span>&gt;</span>
    Content of the second block
  <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span><span style="color: #808080; font-style: italic;">&lt;!-- .section --&gt;</span></pre></td></tr></table></div>

<h3>Requied CSS for this HTML</h3>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.box</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.box</span><span style="color: #6666ff;">.visible</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>The <code>.box</code> class hides all tabbed blocks by default, but the <code>.visible</code> shows the desired block.</p>
<div id="demo"><a href="http://dimox.net/demo/simplest-universal-jquery-tabs-script/">Live Demo</a><a href="http://dimox.net/demo/simplest-universal-jquery-tabs-script.zip" id="download">Download</a></div>
<p><strong>P.S.</strong>. Yes, perhaps I invented the wheel, but i get great pleasure from this process and simultaneously improve my experience in jQuery, and I don&#8217;t think this is so bad.</p>
]]></content:encoded>
			<wfw:commentRss>http://dimox.net/simplest-universal-jquery-tabs-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery: Switching The Focus Between Two Form Fields</title>
		<link>http://dimox.net/jquery-switching-the-focus-between-two-form-fields/</link>
		<comments>http://dimox.net/jquery-switching-the-focus-between-two-form-fields/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 14:46:06 +0000</pubDate>
		<dc:creator>Dimox</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[form]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://dimox.net/?p=14</guid>
		<description><![CDATA[In the last version of my <a href="http://widgets.opera.com/widget/13162/" target="_blank">Google Translator</a> widget for Opera I had to solve one problem - how to switch the focus between two <code>textarea</code>s by clicking on a hotkey.

In this article I want to share jQuery script, that solves this problem. May be it will be usefull for someone.]]></description>
			<content:encoded><![CDATA[<p>In the last version of my <a href="http://widgets.opera.com/widget/13162/" target="_blank">Google Translator</a> widget for Opera I had to solve one problem &#8211; how to switch the focus between two <code>textarea</code>s by clicking on a hotkey.</p>
<p>In this article I want to share jQuery script, that solves this problem. May be it will be usefull for someone.</p>
<p>What is interesting, while I wrote this post and have tested the script, I reduced its size about 2.5 times compared with the original version (this suggests that the same problem can be solved in different ways and always need to try to optimize JavaScript scripts).</p>
<p>Now lets look at the script:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
  <span style="color: #009966; font-style: italic;">/* Adding a class to TEXTAREA to determine the focus */</span>
  $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'textarea'</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">focus</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'textarea'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">removeClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'hasFocus'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'hasFocus'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>
&nbsp;
  <span style="color: #009966; font-style: italic;">/* Putting the focus by default on a first TEXTAREA */</span>
  $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#textarea1'</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">focus</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #009966; font-style: italic;">/* Switching the focus by clicking Enter */</span>
  $<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">keypress</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>e.<span style="color: #660066;">which</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">13</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'textarea'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">not</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.hasFocus'</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">focus</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
  <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>
&nbsp;
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span></pre></td></tr></table></div>

<p>What we doing in this script? We add the <code>.hasFocus</code> class to the focused textarea, remove this class from a field that is not focused, and while pressing <code>Enter</code> focus switches to a textarea, that has no this class.</p>
<p>May be there is a shorter way to do the same, but, unfortunately, I not found simpler way to get a field, that has not the focus.</p>
<h3>Demo</h3>
<p>Look at the <a href="http://dimox.net/demo/jquery-switching-the-focus-between-two-form-fields.html">script in action</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://dimox.net/jquery-switching-the-focus-between-two-form-fields/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Personal CSS Hacks for IE6, IE7, IE8</title>
		<link>http://dimox.net/personal-css-hacks-for-ie6-ie7-ie8/</link>
		<comments>http://dimox.net/personal-css-hacks-for-ie6-ie7-ie8/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 15:33:15 +0000</pubDate>
		<dc:creator>Dimox</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[IE6]]></category>
		<category><![CDATA[IE7]]></category>
		<category><![CDATA[IE8]]></category>
		<category><![CDATA[Internet Explorer]]></category>

		<guid isPermaLink="false">http://dimox.net/?p=12</guid>
		<description><![CDATA[We, web developers, are constantly faced with deficiencies of Internet Explorer, and CSS hacks allow to overcome them in most cases.

In this post I would like to group the personal CSS hacks for each of the 3 popular versions of IE. Most likely you already know the CSS hacks for IE6 and IE7, but for IE8 probably not. Therefore the focus of this article is on a <strong>personal CSS hack for Internet Explorer 8</strong>.]]></description>
			<content:encoded><![CDATA[<p>Are CSS hacks an evil? Yes, of course.</p>
<p>But we will use them, while browsers like IE6, IE7 and IE8 will exist and while Microsoft will not create a normal browser, which will stand on equal with modern browsers like FireFox, Safari, Chrome and Opera.</p>
<p>We, web developers, are constantly faced with deficiencies of Internet Explorer, and CSS hacks allow to overcome them in most cases.</p>
<p>In this post I would like to group the personal CSS hacks for each of the 3 popular versions of IE. Most likely you already know the CSS hacks for IE6 and IE7, but for IE8 probably not. Therefore the focus of this article is on a <strong>personal CSS hack for Internet Explorer 8</strong>.</p>
<h3>CSS hack for Internet Explorer 6</h3>
<p>It is called the <strong>Star HTML Hack</strong> and looks as follows:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #00AA00;">*</span> html <span style="color: #6666ff;">.color</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#C39</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>This hack uses fully valid CSS.</p>
<h3>CSS hack for Internet Explorer 7</h3>
<p>It is called the <strong>Star Plus Hack</strong>.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #00AA00;">*</span><span style="color: #3333ff;">:first-child</span><span style="color: #00AA00;">+</span>html <span style="color: #6666ff;">.color</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#66F</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Or a shorter version:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #00AA00;">*+</span>html <span style="color: #6666ff;">.color</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#66F</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Like the star HTML hack, this uses valid CSS.</p>
<h3>CSS hack for Internet Explorer 8</h3>
<p>I learned about it from a familiar russian web developer, who&#8217;s <a href="http://trifler.ru/blog/post_1264692014.html" target="_blank">found it by experimental way</a>. It looks like this:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.color</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#0FC</span>\<span style="color: #cc66cc;">0</span>/<span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>There are several similar variants of this hack, but this is the easiest. It&#8217;s very easy to remember. Just add the <code>\0/</code> at the end of a CSS rule. This hack must go <strong>after the rules</strong> for all another browser, i.e.:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.color</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#777</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span> <span style="color: #808080; font-style: italic;">/* for all browsers */</span>
<span style="color: #00AA00;">*</span> html <span style="color: #6666ff;">.color</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#C39</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span> <span style="color: #808080; font-style: italic;">/* for IE6 */</span>
<span style="color: #00AA00;">*+</span>html <span style="color: #6666ff;">.color</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#66F</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span> <span style="color: #808080; font-style: italic;">/* for IE7 */</span>
<span style="color: #6666ff;">.color</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#0FC</span>\<span style="color: #cc66cc;">0</span>/<span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span> <span style="color: #808080; font-style: italic;">/* for IE8, going last */</span></pre></div></div>

<p>This hacks <strong>does not use valid CSS</strong>, therefore I recommend to use a conditional comments.</p>
<h3>Demo</h3>
<p>I&#8217;ve created a simple demo, it displays, what personal CSS hacks works fine for all 3 versions of IE. <a href="http://dimox.net/demo/personal-css-hacks-for-ie6-ie7-ie8.html">Take a look</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://dimox.net/personal-css-hacks-for-ie6-ie7-ie8/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Cross-browser CSS3 box-shadow</title>
		<link>http://dimox.net/cross-browser-css3-box-shadow/</link>
		<comments>http://dimox.net/cross-browser-css3-box-shadow/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 13:00:57 +0000</pubDate>
		<dc:creator>Dimox</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[box-shadow]]></category>
		<category><![CDATA[conditional comments]]></category>
		<category><![CDATA[Internet Explorer]]></category>

		<guid isPermaLink="false">http://dimox.net/?p=11</guid>
		<description><![CDATA[There is a simple way for creating cross-browser <code>box-shadow</code> in all modern and popular browsers including Internet Explorer (Opera only since 10.50 pre-alpha version). The essence of the solution is very similar to <a href="http://dimox.net/cross-browser-border-radius-rounded-corners/">cross-browser <code>border-radius</code></a>, it also uses VML and <code>behaviour</code>.]]></description>
			<content:encoded><![CDATA[<p>There is a simple way for creating cross-browser <code>box-shadow</code> in all modern and popular browsers including Internet Explorer (Opera only since 10.50 pre-alpha version). The essence of the solution is very similar to <a href="http://dimox.net/cross-browser-border-radius-rounded-corners/">cross-browser <code>border-radius</code></a>, it also uses VML and <code>behaviour</code>.</p>
<h3><code>box-shadow</code> for modern browsers (except IE8)</h3>
<p>You can use following code for <strong>Firefox, Safari, Chrome and Opera 10.50 pre-alpha:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.box-shadow</span> <span style="color: #00AA00;">&#123;</span>
  -moz-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span> <span style="color: #933;">10px</span> <span style="color: #933;">10px</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Firefox */</span>
  -webkit-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span> <span style="color: #933;">10px</span> <span style="color: #933;">10px</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Safari, Chrome */</span>
  box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span> <span style="color: #933;">10px</span> <span style="color: #933;">10px</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* CSS3 */</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>If you are using an up to date version of Firefox, Safari or Chrome, it&#8217;s enough to use just this CSS:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.box-shadow</span> <span style="color: #00AA00;">&#123;</span>
  box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span> <span style="color: #933;">10px</span> <span style="color: #933;">10px</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* CSS3 */</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<h3><code>box-shadow</code> for Internet Explorer</h3>
<p>Download the <a href="http://box-shadow.googlecode.com/files/ie-css3.htc" target="_blank">ie-css3.htc</a> file, put it in the same place where your CSS file, and then use this CSS code for <strong>Internet Explorer</strong> to make <code>box-shadow</code>:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.rounded-corners</span> <span style="color: #00AA00;">&#123;</span>
  behavior<span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span>ie-css3.htc<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>It&#8217;s reasonable to connect this CSS through conditional comments.</p>
<h3>Cross-browser <code>box-shadow</code> demo</h3>
<p>In the following example you can see the demonstration of both CSS3 styles &#8211; <code>border-radius</code> and <code>box-shadow</code>:</p>
<ul>
<li><a href="http://fetchak.com/ie-css3/" target="_blank">Internet Explorer support for CSS3 <code>border-radius</code> and <code>box-shadow</code></a></li>
</ul>
<p>Turn your attention on few limitations while using these solutions for IE.</p>
]]></content:encoded>
			<wfw:commentRss>http://dimox.net/cross-browser-css3-box-shadow/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Cross-browser CSS3 border-radius (rounded corners)</title>
		<link>http://dimox.net/cross-browser-border-radius-rounded-corners/</link>
		<comments>http://dimox.net/cross-browser-border-radius-rounded-corners/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 09:48:50 +0000</pubDate>
		<dc:creator>Dimox</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[border-radius]]></category>
		<category><![CDATA[conditional comments]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[rounded corners]]></category>

		<guid isPermaLink="false">http://dimox.net/?p=10</guid>
		<description><![CDATA[Currently there are multiple variations for creating a HTML elements with rounded corners. The simplest of these is the method that uses CSS3.

<strong>Fortunately</strong> almost all modern browser (FireFox, Safari, Chrome and Opera since 10.50 pre-alpha) supports CSS3 <code>border-radius</code>, but <strong>unfortunately</strong> none of a versions of Internet Explorer (even IE8) does not support this property.

I very long time was waiting for a moment, when I can safely use the <code>border-radius</code> property on my sites. And this moment has finally has come - now <strong>we can make rounded corners in Internet Explorer with his means</strong>.]]></description>
			<content:encoded><![CDATA[<p>Currently there are multiple variations for creating a HTML elements with rounded corners. The simplest of these is the method that uses CSS3.</p>
<p><strong>Fortunately</strong> almost all modern browser (FireFox, Safari, Chrome and Opera since 10.50 pre-alpha) supports CSS3 <code>border-radius</code>, but <strong>unfortunately</strong> none of a versions of Internet Explorer (even IE8) does not support this property.</p>
<p>I very long time was waiting for a moment, when I can safely use the <code>border-radius</code> property on my sites. And this moment has finally has come &#8211; now <strong>we can make rounded corners in Internet Explorer with his means</strong>. This method uses VML and <code>behaviour</code>.</p>
<h3><code>border-radius</code> for modern browsers</h3>
<p>This is the way that works in all modern browsers (except IE8) like <strong>FireFox, Safari, Chrome and Opera since 10.50 pre-alpha</strong>:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.rounded-corners</span> <span style="color: #00AA00;">&#123;</span>
  -moz-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Firefox */</span>
  -webkit-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Safari, Chrome */</span>
  border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* CSS3 */</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<h3><code>border-radius</code> for Internet Explorer</h3>
<p>Download the <a href="http://curved-corner.googlecode.com/files/border-radius.htc" target="_blank">border-radius.htc</a> file, put it in the same place where your CSS file, and then use this CSS code:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.rounded-corners</span> <span style="color: #00AA00;">&#123;</span>
  behavior<span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">border-radius.htc</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>I think it&#8217;s better to put this CSS in a separate file and connect it using conditional comments:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">&lt;!--[if IE]&gt;&lt;link rel=&quot;stylesheet&quot; href=&quot;ie.css&quot; type=&quot;text/css&quot; media=&quot;screen, projection&quot; /&gt;&lt;![endif]--&gt;</span></pre></div></div>

<h3>Demo</h3>
<p>Download <a href="http://curved-corner.googlecode.com/files/border-radius-demo.zip" target="_blank">crossb-rowser <code>border-radius</code></a> demo.</p>
]]></content:encoded>
			<wfw:commentRss>http://dimox.net/cross-browser-border-radius-rounded-corners/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
