<?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>Dimox.net - CSS, XHTML, jQuery and WordPress from Web Developer &#187; CSS</title>
	<atom:link href="http://dimox.net/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://dimox.net</link>
	<description>CSS, XHTML, jQuery, WordPress</description>
	<lastBuildDate>Fri, 20 Aug 2010 16:48:37 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Making Pretty FeedBurner Counter With Only CSS3</title>
		<link>http://dimox.net/making-pretty-feedburner-counter-with-only-css3/</link>
		<comments>http://dimox.net/making-pretty-feedburner-counter-with-only-css3/#comments</comments>
		<pubDate>Tue, 18 May 2010 10:39:30 +0000</pubDate>
		<dc:creator>Dimox</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[counter]]></category>
		<category><![CDATA[Feedburner]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://dimox.net/?p=20</guid>
		<description><![CDATA[Lately I often play with CSS3, in particular with <a href="http://dimox.net/cross-browser-border-radius-rounded-corners/">border-radius</a> and <a href="http://dimox.net/cross-browser-css3-box-shadow/">box-shadow</a> properties. They allow to easily make a beautiful design of page elements like buttons, tabs etc.

As a result I have made pretty FeedBurner counter using only CSS3, and in this post I want to tell you, how to create such a counter on your site.]]></description>
			<content:encoded><![CDATA[<p>Lately I often play with CSS3, in particular with <a href="http://dimox.net/cross-browser-border-radius-rounded-corners/">border-radius</a> and <a href="http://dimox.net/cross-browser-css3-box-shadow/">box-shadow</a> properties. They allow to easily make a beautiful design of page elements like buttons, tabs etc.</p>
<p>As a result I have made pretty FeedBurner counter using only CSS3, and in this post I want to tell you, how to create such a counter on your site.</p>
<p>I made a demo with different colors of counter. Look at it.</p>
<div class="download">
<div class="dl">
<div class="demo"><a href="http://dimox.net/demo/feedburner-counter-with-only-css3.html">View Demo Online</a></div>
<div class="leftFold"></div>
</div>
</div>
<p>We will display the digits as text, therefore we&#8217;ll need a WordPress plugin, which able to do this. I very like <a href="http://devthought.com/projects/wordpress/feedburnercount/" target="_blank">FeedBurnerCount</a> plugin and I recommend to use it for our FeedBurner counter.</p>
<h3>HTML + PHP code</h3>
<p>HTML code of a counter including the PHP code of the FeedBurnerCount plugin will looks like this:</p>

<div class="wp_syntax"><div 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;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;feedcount&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;counter&quot;</span>&gt;&lt;?php echo fbc_count<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> ?&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;readers&quot;</span>&gt;</span>readers<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></div></div>

<h3>CSS styles</h3>
<p>Now we will design a counter using CSS. I will show an example on orange counter.</p>
<p>Main styles looks like this:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#feedcount</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> inline-<span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">center</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">2px</span> <span style="color: #933;">4px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">font</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">bold</span> <span style="color: #933;">11px</span>/<span style="color: #933;">14px</span> Arial<span style="color: #00AA00;">,</span> <span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#FFF</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#FC8205</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#F25805</span><span style="color: #00AA00;">;</span>
  <span style="color: #00AA00;">*</span><span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">85px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* only for IE6 and IE7 */</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#readers</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#counter</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #933;">3px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">5px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">13px</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-1px</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#333</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#FDC077</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#F25805</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">border-right-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#FEE0BC</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">border-bottom-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#FEE0BC</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>We&#8217;ll get such a counter:</p>
<div class="caption"><img src="http://lh3.ggpht.com/_lQOZbCjTXW8/S_JgFZY3xUI/AAAAAAAAAJ0/XBYeshje2ag/feedburner-counters1.gif" width="92" height="22" alt="FeedBurner counter" class="aligncenter" />
<p>Figure 1</p>
</div>
<p>Now we add little bit of CSS3 styles to make the counter more glamorous. Firstly it&#8217;s rounded corners:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#feedcount</span> <span style="color: #00AA00;">&#123;</span>
  -moz-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">3px</span><span style="color: #00AA00;">;</span>
  -webkit-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">3px</span><span style="color: #00AA00;">;</span>
  border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">3px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Secondly it&#8217;s inner and outer shadow:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#feedcount</span> <span style="color: #00AA00;">&#123;</span>
  -moz-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #993333;">inset</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">2px</span> <span style="color: #cc00cc;">#FFF</span><span style="color: #00AA00;">,</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0.15</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
  -webkit-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #993333;">inset</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">2px</span> <span style="color: #cc00cc;">#FFF</span><span style="color: #00AA00;">,</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0.15</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
  box-shadow<span style="color: #00AA00;">:</span> <span style="color: #993333;">inset</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">2px</span> <span style="color: #cc00cc;">#FFF</span><span style="color: #00AA00;">,</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0.15</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>And the end result will look like:</p>
<div class="caption"><img src="http://lh6.ggpht.com/_lQOZbCjTXW8/S_Jg6e0yDNI/AAAAAAAAAJ4/d3SwpQzP7K0/feedburner-counters2.gif" width="94" height="24" alt="FeedBurner counter" class="aligncenter" />
<p>Figure 2</p>
</div>
<div class="download">
<div class="dl">
<div class="demo"><a href="http://dimox.net/demo/feedburner-counter-with-only-css3.html">View the Demo of Different Colors of FeedBurner Counter</a></div>
<div class="leftFold"></div>
</div>
</div>
<p>As you can see, it&#8217;s very easy to make sexy FeedBurner counter in any color just changing several CSS styles.</p>
<h3>What About Browsers?</h3>
<p>Of course, the shadows and rounded corners will work only in modern browsers: FireFox, Safari, Chrome, Opera. In Internet Explorer we&#8217;ll see a counter like on figure 1. One more thing &#8211; unfortunatelly, inset box-shadow not yet working in Safari.</p>
]]></content:encoded>
			<wfw:commentRss>http://dimox.net/making-pretty-feedburner-counter-with-only-css3/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Cross Browser RGBa Support</title>
		<link>http://dimox.net/cross-browser-rgba-support/</link>
		<comments>http://dimox.net/cross-browser-rgba-support/#comments</comments>
		<pubDate>Mon, 19 Apr 2010 19:13:26 +0000</pubDate>
		<dc:creator>Dimox</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[cross browser]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[RGBa]]></category>

		<guid isPermaLink="false">http://dimox.net/?p=18</guid>
		<description><![CDATA[Yet another very nice feature, that gives to us the CSS3 specification, is the RGBa (stands for <strong>R</strong>ed <strong>G</strong>reen <strong>B</strong>lue <strong>A</strong>lpha) property. RGBa is used to create a semi-transparent background of some HTML element.

As well as other CSS3 properties, (like <a href="http://dimox.net/cross-browser-css3-box-shadow/">box-shadow</a>, <a href="http://dimox.net/cross-browser-border-radius-rounded-corners/">border-radius</a>), all the modern browsers (FireFox, Safari, Chrome, Opera) excellent supports the RGBa property, but only not Internet Explorer.

However, <strong>there is a simple way to make cross browser RGBa support</strong>, i.e. even in IE, moreover in all popular versions: IE6, IE7 and IE8.]]></description>
			<content:encoded><![CDATA[<p>Yet another very nice feature, that gives to us the CSS3 specification, is the RGBa (stands for <strong>R</strong>ed <strong>G</strong>reen <strong>B</strong>lue <strong>A</strong>lpha) property. RGBa is used to create a semi-transparent background of some HTML element.</p>
<p>Compared with the <code>opacity</code> CSS property (which also makes a translucent background), <strong>RGBa</strong> does not makes the contents of a HTML element semi-transparent.</p>
<p>As well as other CSS3 properties, (like <a href="http://dimox.net/cross-browser-css3-box-shadow/">box-shadow</a>, <a href="http://dimox.net/cross-browser-border-radius-rounded-corners/">border-radius</a>), all the modern browsers (FireFox, Safari, Chrome, Opera) excellent supports the RGBa property, but only not Internet Explorer.</p>
<p>However, <strong>there is a simple way to make cross browser RGBa support</strong>, i.e. even in IE, moreover in all popular versions: IE6, IE7 and IE8.</p>
<h3>RGBa CSS3 Definition For Modern Browsers</h3>
<p>It looks like this:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.style</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">204</span><span style="color: #00AA00;">,</span>000<span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0.5</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>In this example we are using <strong>RGB</strong> format of this color: <code>#FFCC00</code>, and apply the 50% opacity.</p>
<h3>RGBa Support For Internet Explorer</h3>
<p>The following code emulates the RGBa in IE6, IE7 and IE8:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.style</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">transparent</span><span style="color: #00AA00;">;</span>
  filter<span style="color: #00AA00;">:</span> progid<span style="color: #3333ff;">:DXImageTransform</span><span style="color: #6666ff;">.Microsoft</span>.gradient<span style="color: #00AA00;">&#40;</span>startColorstr<span style="color: #00AA00;">=</span><span style="color: #cc00cc;">#7FFFCC00</span><span style="color: #00AA00;">,</span>endColorstr<span style="color: #00AA00;">=</span><span style="color: #cc00cc;">#7FFFCC00</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>RGBa represented here as a hex code and looks like <code>#AARRGGBB</code>, where the <code>AA</code> is the alpha value in hex format.</p>
<p>This code for Internet Explorer I recommend to put in a separate file and connect to the site with conditional comments.</p>
<p>A you can see, everything is simple.</p>
<p>Lastly, I want to advise you the <a href="http://kimili.com/journal/rgba-css-generator-for-internet-explorer" target="_blank">RGBa CSS Generator for Internet Explorer</a>. Enough to specify the RGBa definition in the form, and you will get IE version of RGBa.</p>
]]></content:encoded>
			<wfw:commentRss>http://dimox.net/cross-browser-rgba-support/feed/</wfw:commentRss>
		<slash:comments>2</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>14</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[cross browser]]></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 border-radius</a>, it also uses VML and <code>behaviour</code>.</p>
<h3>box-shadow 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>box-shadow 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;">.box-shadow</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 box-shadow 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>7</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[cross browser]]></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>border-radius 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>border-radius 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>31</slash:comments>
		</item>
	</channel>
</rss>
