<?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>@dtinth&#039;s Blog &#187; CSS</title>
	<atom:link href="http://blog.dt.in.th/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.dt.in.th</link>
	<description>Personal Weblog of Thai Pangsakulyanont</description>
	<lastBuildDate>Wed, 30 Nov 2011 07:53:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>My thaiWitter Custom CSS</title>
		<link>http://blog.dt.in.th/2010/10/thaiwitter-compact-css/</link>
		<comments>http://blog.dt.in.th/2010/10/thaiwitter-compact-css/#comments</comments>
		<pubDate>Wed, 06 Oct 2010 16:28:21 +0000</pubDate>
		<dc:creator>the DtTvB</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[thaiWitter]]></category>

		<guid isPermaLink="false">http://blog.dt.in.th/?p=441</guid>
		<description><![CDATA[As you know, thaiWitter has support for adding your own custom CSS styles. How? Find out! Anyway, here&#8217;s what I use: #head .menu-item:not(#menu-additional) { display: none; } #menu-additional { margin-left:15px; } @media (max-width: 300px) { .status { padding-left: 7px; padding-right: &#8230; <a href="http://blog.dt.in.th/2010/10/thaiwitter-compact-css/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>As you know, thaiWitter has support for adding your own custom CSS styles. How? Find out!</p>

<div style="float:right"><span><span class="corner1" style="width: 323px"><span class="corner2"><span class="corner3"><span class="corner4"><span class="corner5"><img src="http://tnk.dt.in.th/blog-data/2010-10/06-2333.png" style="border: 0; display: block; margin: 0 auto;" width="273" height="667" alt=""></span></span></span></span></span></span></div>

<p>Anyway, here&#8217;s what I use:</p>

<pre><code>#head .menu-item:not(#menu-additional) {
    display: none;
}
#menu-additional {
    margin-left:15px;
}
@media (max-width: 300px) {
  .status {
    padding-left: 7px;
    padding-right: 5px;
  }
  .status-inner {
    margin-left:35px;
    word-wrap: break-word;
  }
  #menu-additional {
    margin-left:2px;
  }
}
</code></pre>

<p>I name it the &#8220;compact mode&#8221; because I like to keep my thaiWitter window narrow, and what happened is the menu items breaks into 2 lines, so I made it. What this CSS does is:</p>

<ul>
<li>Hides all the menu items, except the more button. I can remember the keyboard shortcuts. <img src='http://blog.dt.in.th/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </li>
<li>When window&#8217;s width is ≤ 300, reduce horizontal whitespaces. It doesn&#8217;t look nice when the window is wide, but looks nice when it&#8217;s narrow.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.dt.in.th/2010/10/thaiwitter-compact-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Blurry Text using CSS 3</title>
		<link>http://blog.dt.in.th/2010/05/blurry-text-css/</link>
		<comments>http://blog.dt.in.th/2010/05/blurry-text-css/#comments</comments>
		<pubDate>Fri, 14 May 2010 14:34:35 +0000</pubDate>
		<dc:creator>the DtTvB</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://blog.dt.in.th/.html</guid>
		<description><![CDATA[This is an effect I have been using in a hidden feature of #thaiWitter, where a text pops up, and then blurs and fades away. I will show you how it looks like: Hello, World! This effect can be achieved &#8230; <a href="http://blog.dt.in.th/2010/05/blurry-text-css/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p class="center">This is an effect I have been using in a hidden feature of #thaiWitter, where a text pops up, and then blurs and fades away.</p>

<p class="center">I will show you how it looks like:</p>

<p style="color:#fff;color:rgba(255,255,255,0);text-shadow:0 0 10px #fff;text-align:center"><span style="font-size:4em;">Hello, World!</span></p>

<p>This effect can be achieved using CSS3. By setting the text to transparent and give it a text shadow. However this won&#8217;t work on WebKit, because on WebKit browsers, if a text is transparent, then its shadow is transparent too, so in the example above you see nothing. Don&#8217;t know how it looks like on Opera because I don&#8217;t care. Anyway here&#8217;s the code:</p>

<pre><code>color: rgba(255, 255, 255, 0);
text-shadow: 0 0 10px #fff;
</code></pre>

<p>Oh and for IE, just use <code>progid:DXImageTransform.Microsoft.Blur</code> then. In fact it works for images too, not just text.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dt.in.th/2010/05/blurry-text-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

