<?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>Dmitri's Blog &#187; HTML and CSS</title>
	<atom:link href="http://www.dmitri.me/blog/category/html-and-css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dmitri.me/blog</link>
	<description>Dmitri Smirnov. Web development in Estonia.</description>
	<lastBuildDate>Tue, 10 Aug 2010 12:07:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Hypnotic effect with Rahael</title>
		<link>http://www.dmitri.me/blog/hypnotic-effect-with-rahael/</link>
		<comments>http://www.dmitri.me/blog/hypnotic-effect-with-rahael/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 13:49:22 +0000</pubDate>
		<dc:creator>Dmitri</dc:creator>
				<category><![CDATA[HTML and CSS]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[raphael]]></category>

		<guid isPermaLink="false">http://www.dmitri.me/blog/?p=382</guid>
		<description><![CDATA[Open fullscreen

]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.dmitri.me/misc/ball/">Open fullscreen</a><br />
<iframe scrolling="no" src="http://www.dmitri.me/misc/ball/" width="550" height="550" frameborder="0"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dmitri.me/blog/hypnotic-effect-with-rahael/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML nested ordered lists and numeration</title>
		<link>http://www.dmitri.me/blog/html-nested-ordered-lists-and-numeration/</link>
		<comments>http://www.dmitri.me/blog/html-nested-ordered-lists-and-numeration/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 07:26:29 +0000</pubDate>
		<dc:creator>Dmitri</dc:creator>
				<category><![CDATA[HTML and CSS]]></category>
		<category><![CDATA[web-development]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[numeration]]></category>
		<category><![CDATA[ol]]></category>
		<category><![CDATA[Ordered list]]></category>

		<guid isPermaLink="false">http://www.dmitri.me/blog/?p=363</guid>
		<description><![CDATA[Sometimes is needed to-do nested numeration in HTML ordered lists. Here is a simple CSS solution how to achieve this.
CSS:
ol {  counter-reset: item;  }
ol li { display:block; }
ol li:before { content: counters(item, ".") ". "; counter-increment: item }

HTML:

&#60;ol&#62;
  &#60;li&#62;
    Cities
    &#60;ol&#62;
      [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes is needed to-do nested numeration in HTML ordered lists. Here is a simple CSS solution how to achieve this.</p>
<p><strong>CSS:</strong><br />
<code>ol {  counter-reset: item;  }<br />
ol li { display:block; }<br />
ol li:before { content: counters(item, ".") ". "; counter-increment: item }<br />
</code></p>
<p><strong>HTML:</strong>
<pre>
<code>&lt;ol&gt;
  &lt;li&gt;
    Cities
    &lt;ol&gt;
      &lt;li&gt;
        Tallinn
        &lt;ol&gt;
          &lt;li&gt;Kesklinn&lt;/li&gt;
          &lt;li&gt;Lasnamäe&lt;/li&gt;
          &lt;li&gt;Mustamäe&lt;/li&gt;
        &lt;/ol&gt;
      &lt;/li&gt;
      &lt;li&gt;
        Narva
        &lt;ol&gt;
          &lt;li&gt;Krenholmi&lt;/li&gt;
          &lt;li&gt;Soldino&lt;/li&gt;
          &lt;li&gt;Paemuru&lt;/li&gt;
        &lt;/ol&gt;
      &lt;/li&gt;
    &lt;/ol&gt;
  &lt;/li&gt;
&lt;/ol&gt;
</code>
</pre>
<p><strong>Result:</strong></p>
<style type="text/css">
ol.post_lists{ counter-reset: item; }
ol.post_lists li { display:block; }
ol.post_lists li:before { content: counters(item, ".") ". "; counter-increment: item }
</style>
<ol class="post_lists">
<li>
    Cities</p>
<ol class="post_lists">
<li>
        Tallinn</p>
<ol class="post_lists">
<li>Kesklinn</li>
<li>Lasnamäe</li>
<li>Mustamäe</li>
</ol>
</li>
<li>
        Narva</p>
<ol class="post_lists">
<li>Krenholmi</li>
<li>Soldino</li>
<li>Paemuru</li>
</ol>
</li>
</ol>
</li>
</ol>
<p>You can do so many nested lists as you want.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dmitri.me/blog/html-nested-ordered-lists-and-numeration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hide outline border on A tag focus</title>
		<link>http://www.dmitri.me/blog/hide-outline-border-on-a-tag-focus/</link>
		<comments>http://www.dmitri.me/blog/hide-outline-border-on-a-tag-focus/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 07:01:54 +0000</pubDate>
		<dc:creator>Dmitri</dc:creator>
				<category><![CDATA[HTML and CSS]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[web-development]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[outline]]></category>

		<guid isPermaLink="false">http://www.dmitri.me/blog/?p=319</guid>
		<description><![CDATA[
.out1:focus { outline:1px dotted black; }

When you focus A tag or submit button sometimes outline border looks ugly on websites. Here are examples:
Foobar 
This can be easy fixed (for all browsers except Internet Explorer!) by adding 1 line of CSS rule:
a:focus { outline: none; }
IE has non-standard HTML attribute hideFocus=&#8221;true&#8221; to solve this problem. Of [...]]]></description>
			<content:encoded><![CDATA[<style type="text/css">
.out1:focus { outline:1px dotted black; }
</style>
<p>When you focus A tag or submit button sometimes outline border looks ugly on websites. Here are examples:<br />
<a href="#" class="out1" onclick="return false">Foobar</a> <a href="#" class="out1" onclick="return false"><img src="/lj/l_toyota.png" alt="toyota" border="0" /></a></p>
<p>This can be easy fixed (f<strong>or all browsers except Internet Explorer!</strong>) by adding 1 line of CSS rule:<br />
<code>a:focus { outline: none; }</code></p>
<p>IE has non-standard HTML attribute <strong>hideFocus=&#8221;true&#8221;</strong> to solve this problem. Of course you don&#8217;t like to put this attribute in every &lt;A&gt; tag and submit buttons in your HTML. I have 2 working solutions for all browsers:</p>
<h3>CSS expression solution</h3>
<p><code>input, a {<br />
&nbsp;&nbsp;outline:expression(hideFocus='true');<br />
&nbsp;&nbsp;outline:none;<br />
}</code></p>
<h3>jQuery solution</h3>
<p><code>$("a, input").each(function() {<br />
&nbsp;&nbsp;$(this).attr("hideFocus", "true").css("outline", "none");<br />
});</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dmitri.me/blog/hide-outline-border-on-a-tag-focus/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Internet Explorer intepolation mode for images</title>
		<link>http://www.dmitri.me/blog/internet-explorer-intepolation-mode-for-images/</link>
		<comments>http://www.dmitri.me/blog/internet-explorer-intepolation-mode-for-images/#comments</comments>
		<pubDate>Wed, 11 Feb 2009 13:09:59 +0000</pubDate>
		<dc:creator>Dmitri</dc:creator>
				<category><![CDATA[HTML and CSS]]></category>
		<category><![CDATA[web-development]]></category>
		<category><![CDATA[bicubic]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[Images]]></category>
		<category><![CDATA[microsoft]]></category>

		<guid isPermaLink="false">http://www.dmitri.me/blog/?p=221</guid>
		<description><![CDATA[Every self-respecting web-designer and web-developer know that when scaling images browser makes picture smaller or larger by definite &#8220;magic&#8221; algorithms. All browsers except IE, do that much-less correctly.
In Internet Explorer you should setup that algorithm manually as CSS property.

img { -ms-interpolation-mode:bicubic }

So here is result, screenshot are taken in IE7 withimage scale about 50-60%.

Bicubic algorithm disabled (default)

Bicubic [...]]]></description>
			<content:encoded><![CDATA[<p>Every self-respecting web-designer and web-developer know that when scaling images browser makes picture smaller or larger by definite &#8220;magic&#8221; algorithms. All browsers except IE, do that much-less correctly.</p>
<p>In Internet Explorer you should setup that algorithm manually as CSS property.<br />
<code><br />
img { -ms-interpolation-mode:bicubic }<br />
</code></p>
<h4>So here is result, screenshot are taken in IE7 with<br />image scale about 50-60%.</h4>
<p><img src="/misc/ie-algo/without-algorithm.jpg" alt="Without algorithm" /><br />
<em>Bicubic algorithm disabled (default)</em></p>
<p><img src="/misc/ie-algo/with-algorithm.jpg" alt="Without algorithm" /><br />
<em>Bicubic algorithm enabled</em></p>
<p>Read more on <a href="http://msdn.microsoft.com/en-us/library/ms530822(VS.85).aspx">MSDN website</a> about this issue.</p>
<p>Enabling interpolation algorithm is useful for any kind of *boxes like <a href="http://fancy.klade.lv/">Fancy Box</a>, <a href="http://mjijackson.com/shadowbox/">Shadowbox</a>, <a href="http://www.huddletogether.com/projects/lightbox2/">Light Box</a>, etc&#8230;</p>
<p><strong>NB! Enabling algorithms can decrease IE&#8217;s performance up 2 times!<br />Nice joke, BILL!</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dmitri.me/blog/internet-explorer-intepolation-mode-for-images/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE session bug is solved</title>
		<link>http://www.dmitri.me/blog/ie-session-bug-is-solved/</link>
		<comments>http://www.dmitri.me/blog/ie-session-bug-is-solved/#comments</comments>
		<pubDate>Thu, 05 Feb 2009 09:07:40 +0000</pubDate>
		<dc:creator>Dmitri</dc:creator>
				<category><![CDATA[HTML and CSS]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[web-development]]></category>
		<category><![CDATA[work]]></category>
		<category><![CDATA[IE bug]]></category>
		<category><![CDATA[stupid microsoft]]></category>

		<guid isPermaLink="false">http://www.dmitri.me/blog/?p=207</guid>
		<description><![CDATA[IE has bug which deletes session data and brakes functionality of website. In other browsers all is working fine.
Here is example in PHP:

&#60;?php
print_r($_SESSION);
//output:
//Array ()
?&#62;

After half day of breaking brain and Google really fantastic solution for this problem, but no one of them didn&#8217;t solved our problem. So Mika found that if markup have empty src [...]]]></description>
			<content:encoded><![CDATA[<p>IE has bug which deletes session data and brakes functionality of website. In other browsers all is working fine.<br />
Here is example in PHP:<br />
<code><br />
&lt;?php<br />
print_r($_SESSION);<br />
//output:<br />
//Array ()<br />
?&gt;<br />
</code></p>
<p>After half day of breaking brain and Google really fantastic solution for this problem, but no one of them didn&#8217;t solved our problem. So <a href="http://www.appelsiini.net">Mika</a> found that if markup have empty <strong>src</strong> attribute, IE makes an empty request which breaks session data. So solution is simple check if there any empty <strong>src</strong> attributes and <strong>hrefs</strong> in link tag.</p>
<p>Was:<br />
&lt;img <span style="color:red">src=&quot;&quot;</span> alt=&quot;An image&quot; id=&quot;img&quot; /&gt;</p>
<p>You need to remove this empty attribute or if you don&#8217;t need this for javascript remove <strong>IMG</strong> tag at all.<br />
&lt;img <span style="color:#ccc;text-decoration:line-through;">src=&quot;&quot;</span> alt=&quot;An image&quot; id=&quot;img&quot; /&gt;</p>
<p>That&#8217;s really stupid.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dmitri.me/blog/ie-session-bug-is-solved/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Generate static websites with Ruby (webby)</title>
		<link>http://www.dmitri.me/blog/generate-static-websites-with-ruby-webby/</link>
		<comments>http://www.dmitri.me/blog/generate-static-websites-with-ruby-webby/#comments</comments>
		<pubDate>Mon, 19 Jan 2009 12:00:41 +0000</pubDate>
		<dc:creator>Dmitri</dc:creator>
				<category><![CDATA[HTML and CSS]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[web-development]]></category>
		<category><![CDATA[work]]></category>
		<category><![CDATA[generate]]></category>
		<category><![CDATA[webby]]></category>

		<guid isPermaLink="false">http://www.dmitri.me/blog/?p=198</guid>
		<description><![CDATA[Often we need to generate some websites with static content, for example without any line of PHP code or without Ruby on Rails, just need to have plain HTML files. As for Me I hate to edit 50 HTML pages manually. I found a nice solution. It&#8217;s  Webby
This is a great solution to complete [...]]]></description>
			<content:encoded><![CDATA[<p>Often we need to generate some websites with static content, for example without any line of PHP code or without Ruby on Rails, just need to have plain HTML files. As for Me I hate to edit 50 HTML pages manually. I found a nice solution. It&#8217;s  <a href="http://webby.rubyforge.org">Webby</a></p>
<p>This is a great solution to complete such task.</p>
<p>You can check how it&#8217;s work <a href="http://webby.rubyforge.org/learn/">here</a> or <a href="http://clarkware.com/cgi/blosxom/2008/08/06">there (old version)</a>.</p>
<p>There are more tools like Webby, <a href="http://nanoc.stoneship.org/">Nanoc</a> and <a href="http://github.com/mojombo/jekyll/tree/master">jekyll</a>. I have didn&#8217;t tried them, but I guess the functionality is the same.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dmitri.me/blog/generate-static-websites-with-ruby-webby/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
