<?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>Vivian Crap &#187; CSS</title>
	<atom:link href="http://www.lingihuang.com/viviancrap/archives/category/web-design/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lingihuang.com/viviancrap</link>
	<description>trust no one</description>
	<lastBuildDate>Tue, 10 Jan 2012 15:57:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Liquid Round Corners</title>
		<link>http://www.lingihuang.com/viviancrap/archives/liquid-round-corners/</link>
		<comments>http://www.lingihuang.com/viviancrap/archives/liquid-round-corners/#comments</comments>
		<pubDate>Sun, 22 Nov 2009 08:45:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.lingihuang.com/viviancrap/?p=327</guid>
		<description><![CDATA[Liquid PNG 8 Round Corners HTML &#60;div id="wrapperDiv" class="wrapper"&#62; &#60;div class="top-left"&#62;&#60;/div&#62; &#60;div class="top-right"&#62;&#60;/div&#62; &#60;div class="top-center"&#62;&#60;div class="hack-ie6"&#62;&#60;/div&#62;&#60;/div&#62; &#60;div id="bodyCenterDiv" class="body-center"&#62; &#60;div class="contents"&#62;contents right here&#60;/div&#62; &#60;/div&#62; &#60;div class="bottom-left"&#62;&#60;/div&#62; &#60;div class="bottom-right"&#62;&#60;/div&#62; &#60;div class="bottom-center"&#62;&#60;div class="hack-ie6"&#62;&#60;/div&#62;&#60;/div&#62; &#60;/div&#62; Stylesheet .wrapper { width: 500px; margin: 10px auto; } .wrapper .top-left, .wrapper .top-center, .wrapper .top-right, .wrapper .bottom-left, .wrapper .bottom-center, .wrapper .bottom-right { background: [...]]]></description>
			<content:encoded><![CDATA[<div class="entry-content">
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Liquid PNG 8 Round Corners</div>
</p></div>
</p></div>
</p></div>
</p></div>
<h4 class="subtitle align-subtitle">HTML</h4>
<pre>
          			<code class="text-indent-0"><span class="element">&lt;div</span> <span class="id">id</span>=<span class="string">"wrapperDiv"</span> <span class="class">class</span>=<span class="string">"wrapper"</span><span class="element">&gt;</span></code>
          				<code class="text-indent-1"><span class="element">&lt;div</span> <span class="class">class</span>=<span class="string">"top-left"</span><span class="element">&gt;</span><span class="element">&lt;/div&gt;</span></code>
          				<code class="text-indent-1"><span class="element">&lt;div</span> <span class="class">class</span>=<span class="string">"top-right"</span><span class="element">&gt;</span><span class="element">&lt;/div&gt;</span></code>
          				<code class="text-indent-1"><span class="element">&lt;div</span> <span class="class">class</span>=<span class="string">"top-center"</span><span class="element">&gt;</span><span class="element">&lt;div</span> <span class="class">class</span>=<span class="string">"hack-ie6"</span><span class="element">&gt;</span><span class="element">&lt;/div&gt;</span><span class="element">&lt;/div&gt;</span></code>
          				<code class="text-indent-1"><span class="element">&lt;div</span> <span class="id">id</span>=<span class="string">"bodyCenterDiv"</span> <span class="class">class</span>=<span class="string">"body-center"</span><span class="element">&gt;</span></code>
          					<code class="text-indent-2"><span class="element">&lt;div</span> <span class="class">class</span>=<span class="string">"contents"</span><span class="element">&gt;</span><span class="comment">contents right here</span><span class="element">&lt;/div&gt;</span></code>
          				<code class="text-indent-1"><span class="element">&lt;/div&gt;</span></code>
          				<code class="text-indent-1"><span class="element">&lt;div</span> <span class="class">class</span>=<span class="string">"bottom-left"</span><span class="element">&gt;</span><span class="element">&lt;/div&gt;</span></code>
          				<code class="text-indent-1"><span class="element">&lt;div</span> <span class="class">class</span>=<span class="string">"bottom-right"</span><span class="element">&gt;</span><span class="element">&lt;/div&gt;</span></code>
          				<code class="text-indent-1"><span class="element">&lt;div</span> <span class="class">class</span>=<span class="string">"bottom-center"</span><span class="element">&gt;</span><span class="element">&lt;div</span> <span class="class">class</span>=<span class="string">"hack-ie6"</span><span class="element">&gt;</span><span class="element">&lt;/div&gt;</span><span class="element">&lt;/div&gt;</span></code>
          			<code class="text-indent-0"><span class="element">&lt;/div&gt;</span></code>
          		</pre>
<h4 class="subtitle align-subtitle">Stylesheet</h4>
<pre>
          			<code class="text-indent-0"><span class="class">.wrapper</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">width</span>: <span class="value">500px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">margin</span>: <span class="value">10px auto</span>;</code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">.wrapper .top-left, .wrapper .top-center, .wrapper .top-right,</span></code>
          			<code class="text-indent-0"><span class="class">.wrapper .bottom-left, .wrapper .bottom-center, .wrapper .bottom-right</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">background</span>: <span class="value">transparent url(../images/png8.png) left top scroll no-repeat</span>;</code>
          				<code class="text-indent-1"><span class="attribute">overflow</span>: <span class="value">hidden</span>;</code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">.wrapper .top-left</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">width</span>: <span class="value">15px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">height</span>: <span class="value">46px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">background-position</span>: <span class="value">left top</span>;</code>
          				<code class="text-indent-1"><span class="attribute">float</span>: <span class="value">left</span>;</code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">.wrapper .top-center</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">height</span>: <span class="value">46px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">background-position</span>: <span class="value">-15px top</span>;</code>
          				<code class="text-indent-1"><span class="attribute">_float</span>: <span class="value">left</span>;</code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">.wrapper .top-right</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">width</span>: <span class="value">15px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">height</span>: <span class="value">46px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">background-position</span>: <span class="value">right top</span>;</code>
          				<code class="text-indent-1"><span class="attribute">float</span>: <span class="value">right</span>;</code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">.wrapper .body-center</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">width</span>: <span class="value">496px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">background-color</span>: <span class="value">#fff</span>;</code>
          				<code class="text-indent-1"><span class="attribute">border-left</span>: <span class="value">2px solid #333</span>;</code>
          				<code class="text-indent-1"><span class="attribute">border-right</span>: <span class="value">2px solid #333</span>;</code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">.wrapper .bottom-left</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">width</span>: <span class="value">15px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">height</span>: <span class="value">31px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">background-position</span>: <span class="value">left -46px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">float</span>: <span class="value">left</span>;</code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">.wrapper .bottom-center</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">height</span>: <span class="value">31px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">background-position</span>: <span class="value">-15px -46px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">_float</span>: <span class="value">left</span>;</code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">.wrapper .bottom-right</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">width</span>: <span class="value">15px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">height</span>: <span class="value">31px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">background-position</span>: <span class="value">right -46px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">float</span>: <span class="value">right</span>;</code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">*html .wrapper .hack-ie6</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">width</span>: <span class="value">100%</span>;</code>
          				<code class="text-indent-1"><span class="attribute">overflow</span>: <span class="value">hidden</span>;</code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          		</pre>
<div class="button-row clearfix">
<p class="button-style preview-icon"><a href="http://www.lingihuang.com/viviancrap/wp-content/uploads/liquid_round_corners/png8.html" target="_blank">View<span>Demo</span></a></p>
</p></div>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Liquid PNG 24 Round Corners with Outer Shadows</div>
</p></div>
</p></div>
</p></div>
</p></div>
<h4 class="subtitle align-subtitle">HTML</h4>
<pre>
          			<code class="text-indent-0"><span class="element">&lt;div</span> <span class="id">id</span>=<span class="string">"wrapperDiv"</span> <span class="class">class</span>=<span class="string">"wrapper"</span><span class="element">&gt;</span></code>
          				<code class="text-indent-1"><span class="element">&lt;div</span> <span class="class">class</span>=<span class="string">"top-left"</span><span class="element">&gt;</span><span class="element">&lt;/div&gt;</span></code>
          				<code class="text-indent-1"><span class="element">&lt;div</span> <span class="class">class</span>=<span class="string">"top-right"</span><span class="element">&gt;</span><span class="element">&lt;/div&gt;</span></code>
          				<code class="text-indent-1"><span class="element">&lt;div</span> <span class="class">class</span>=<span class="string">"top-center"</span><span class="element">&gt;</span><span class="element">&lt;div</span> <span class="class">class</span>=<span class="string">"hack-ie6"</span><span class="element">&gt;</span><span class="element">&lt;/div&gt;</span><span class="element">&lt;/div&gt;</span></code>
          				<code class="text-indent-1"><span class="element">&lt;div</span> <span class="class">class</span>=<span class="string">"body-left"</span><span class="element">&gt;</span></code>
          					<code class="text-indent-2"><span class="element">&lt;div</span> <span class="class">class</span>=<span class="string">"body-right"</span><span class="element">&gt;</span></code>
          						<code class="text-indent-3"><span class="element">&lt;div</span> <span class="id">id</span>=<span class="string">"bodyLeftDiv"</span> <span class="class">class</span>=<span class="string">"body-left-hack-ie6"</span><span class="element">&gt;</span><span class="element">&lt;/div&gt;</span></code>
          						<code class="text-indent-3"><span class="element">&lt;div</span> <span class="id">id</span>=<span class="string">"bodyRightDiv"</span> <span class="class">class</span>=<span class="string">"body-right-hack-ie6"</span><span class="element">&gt;</span><span class="element">&lt;/div&gt;</span></code>
          						<code class="text-indent-3"><span class="element">&lt;div</span> <span class="id">id</span>=<span class="string">"bodyCenterDiv"</span> <span class="class">class</span>=<span class="string">"body-center"</span><span class="element">&gt;</span></code>
          							<code class="text-indent-4"><span class="element">&lt;div</span> <span class="class">class</span>=<span class="string">"contents"</span><span class="element">&gt;</span><span class="comment">contents right here</span><span class="element">&lt;/div&gt;</span></code>
          						<code class="text-indent-3"><span class="element">&lt;/div&gt;</span></code>
          					<code class="text-indent-2"><span class="element">&lt;/div&gt;</span></code>
          				<code class="text-indent-1"><span class="element">&lt;/div&gt;</span></code>
          				<code class="text-indent-1"><span class="element">&lt;div</span> <span class="class">class</span>=<span class="string">"bottom-left"</span><span class="element">&gt;</span><span class="element">&lt;/div&gt;</span></code>
          				<code class="text-indent-1"><span class="element">&lt;div</span> <span class="class">class</span>=<span class="string">"bottom-right"</span><span class="element">&gt;</span><span class="element">&lt;/div&gt;</span></code>
          				<code class="text-indent-1"><span class="element">&lt;div</span> <span class="class">class</span>=<span class="string">"bottom-center"</span><span class="element">&gt;</span><span class="element">&lt;div</span> <span class="class">class</span>=<span class="string">"hack-ie6"</span><span class="element">&gt;</span><span class="element">&lt;/div&gt;</span><span class="element">&lt;/div&gt;</span></code>
          			<code class="text-indent-0"><span class="element">&lt;/div&gt;</span></code>
          		</pre>
<h4 class="subtitle align-subtitle">Stylesheet</h4>
<pre>
          			<code class="text-indent-0"><span class="class">.wrapper</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">width</span>: <span class="value">500px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">margin</span>: <span class="value">10px auto</span>;</code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">.wrapper .top-left</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">width</span>: <span class="value">40px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">height</span>: <span class="value">40px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">background</span>: <span class="value">transparent url(../images/top-left-png24.png) left top scroll no-repeat</span>;</code>
          				<code class="text-indent-1"><span class="attribute">float</span>: <span class="value">left</span>;</code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">.wrapper .top-center</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">height</span>: <span class="value">40px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">background</span>: <span class="value">transparent url(../images/top-center-png24.png) left top scroll repeat-x</span>;</code>
          				<code class="text-indent-1"><span class="attribute">_float</span>: <span class="value">left</span>;</code>
          				<code class="text-indent-1"><span class="attribute">overflow</span>: <span class="value">hidden</span>;</code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">.wrapper .top-right</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">width</span>: <span class="value">40px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">height</span>: <span class="value">40px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">background</span>: <span class="value">transparent url(../images/top-right-png24.png) left top scroll no-repeat</span>;</code>
          				<code class="text-indent-1"><span class="attribute">float</span>: <span class="value">right</span>;</code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">.wrapper .body-left</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">width</span>: <span class="value">100%</span>;</code>
          				<code class="text-indent-1"><span class="attribute">background</span>: <span class="value">transparent url(../images/body-left-png24.png) left top scroll repeat-y</span>;</code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">.wrapper .body-center</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">background-color</span>: <span class="value">#e9f2f5</span>;</code>
          				<code class="text-indent-1"><span class="attribute">margin</span>: <span class="value">0 40px</span>;</code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">.wrapper .body-right</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">width</span>: <span class="value">100%</span>;</code>
          				<code class="text-indent-1"><span class="attribute">background</span>: <span class="value">transparent url(../images/body-right-png24.png) 100% top scroll repeat-y</span>;</code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">.wrapper .bottom-left</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">width</span>: <span class="value">40px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">height</span>: <span class="value">40px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">background</span>: <span class="value">transparent url(../images/bottom-left-png24.png) left top scroll no-repeat</span>;</code>
          				<code class="text-indent-1"><span class="attribute">float</span>: <span class="value">left</span>;</code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">.wrapper .bottom-center</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">height</span>: <span class="value">40px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">background</span>: <span class="value">transparent url(../images/bottom-center-png24.png) left top scroll repeat-x</span>;</code>
          				<code class="text-indent-1"><span class="attribute">_float</span>: <span class="value">left</span>;</code>
          				<code class="text-indent-1"><span class="attribute">overflow</span>: <span class="value">hidden</span>;</code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">.wrapper .bottom-right</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">width</span>: <span class="value">40px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">height</span>: <span class="value">40px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">background</span>: <span class="value">transparent url(../images/bottom-right-png24.png) left top scroll no-repeat</span>;</code>
          				<code class="text-indent-1"><span class="attribute">float</span>: <span class="value">right</span>;</code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          		</pre>
<h4 class="subtitle align-subtitle">Stylesheet For IE 6</h4>
<pre>
          			<code class="text-indent-0"><span class="class">*html .wrapper .hack-ie6</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">width</span>: <span class="value">100%</span>;</code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">*html .wrapper .top-left</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">background</span>: <span class="value">none</span>;</code>
          				<code class="text-indent-1"><span class="attribute">filter</span>:<span class="value">progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/top-left-png24.png', sizingMethod='image');</span></code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">*html .wrapper .top-center</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">background</span>: <span class="value">none</span>;</code>
          				<code class="text-indent-1"><span class="attribute">filter</span>:<span class="value">progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/top-center-png24.png', sizingMethod='scale');</span></code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">*html .wrapper .top-right</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">background</span>: <span class="value">none</span>;</code>
          				<code class="text-indent-1"><span class="attribute">filter</span>:<span class="value">progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/top-right-png24.png', sizingMethod='image');</span></code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">*html .wrapper .body-left, *html .wrapper .body-right</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">background</span>: <span class="value">none</span>;</code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">*html .wrapper .body-center</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">width</span>: <span class="value">expression(document.getElementById('wrapperDiv').offsetWidth - document.getElementById('bodyLeftDiv').offsetWidth - document.getElementById('bodyRightDiv').offsetWidth + "px")</span>;</code>
          				<code class="text-indent-1"><span class="attribute">margin</span>: <span class="value">0 40px</span></code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">*html .wrapper .body-left-hack-ie6</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">width</span>: <span class="value">40px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">height</span>: <span class="value">expression(document.getElementById('bodyCenterDiv').offsetHeight + "px")</span>;</code>
          				<code class="text-indent-1"><span class="attribute">filter</span>:<span class="value">progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/body-left-png24.png', sizingMethod='scale')</span>;</code>
          				<code class="text-indent-1"><span class="attribute">margin</span>: <span class="value">0 -40px 0 0</span></code>
          				<code class="text-indent-1"><span class="attribute">float</span>:<span class="value">left</span></code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">*html .wrapper .body-right-hack-ie6</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">width</span>: <span class="value">40px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">height</span>: <span class="value">expression(document.getElementById('bodyCenterDiv').offsetHeight + "px")</span>;</code>
          				<code class="text-indent-1"><span class="attribute">filter</span>:<span class="value">progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/body-right-png24.png', sizingMethod='scale')</span>;</code>
          				<code class="text-indent-1"><span class="attribute">margin</span>: <span class="value">0 0 0 -40px</span></code>
          				<code class="text-indent-1"><span class="attribute">float</span>:<span class="value">right</span></code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">*html .wrapper .bottom-left</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">background</span>: <span class="value">none</span>;</code>
          				<code class="text-indent-1"><span class="attribute">filter</span>:<span class="value">progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/bottom-left-png24.png', sizingMethod='image');</span></code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">*html .wrapper .bottom-center</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">background</span>: <span class="value">none</span>;</code>
          				<code class="text-indent-1"><span class="attribute">filter</span>:<span class="value">progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/bottom-center-png24.png', sizingMethod='scale');</span></code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">*html .wrapper .bottom-right</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">background</span>: <span class="value">none</span>;</code>
          				<code class="text-indent-1"><span class="attribute">filter</span>:<span class="value">progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/bottom-right-png24.png', sizingMethod='image');</span></code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          		</pre>
<div class="button-row clearfix">
<p class="button-style preview-icon"><a href="http://www.lingihuang.com/viviancrap/wp-content/uploads/liquid_round_corners/png24.html" target="_blank">View<span>Demo</span></a></p>
</p></div>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Related Posts</div>
</p></div>
</p></div>
</p></div>
</p></div>
<ul class="entry-list">
<li><a href="http://home.tiscali.nl/developerscorner/liquidcorners/liquidcorners.htm" target="_blank">Liquid Round Corners</a></li>
<li><a href="http://www.positioniseverything.net/articles/dropshadows.html" target="_blank">PNG Drop Shadows</a></li>
<li><a href="http://www.positioniseverything.net/articles/dropshadows2.html" target="_blank">Four Sided PNG Drop Shadows</a></li>
<li><a href="http://www.webmonkey.com/tutorial/Get_Started_with_CSS_3" target="_blank">Get Started With CSS 3</a></li>
<li><a href="http://www.alistapart.com/articles/mountaintop" target="_blank">Mountaintop Corners</a></li>
<li><a href="http://nate.koechley.com/talks/labs/six-css-techniques-explained.html" target="_blank">Six CSS Techniques</a></li>
</ul></div>
]]></content:encoded>
			<wfw:commentRss>http://www.lingihuang.com/viviancrap/archives/liquid-round-corners/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stack Order</title>
		<link>http://www.lingihuang.com/viviancrap/archives/stack-order/</link>
		<comments>http://www.lingihuang.com/viviancrap/archives/stack-order/#comments</comments>
		<pubDate>Mon, 21 Sep 2009 14:15:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.lingihuang.com/viviancrap/?p=310</guid>
		<description><![CDATA[What is z-index? The z-index property determines the stack level of an HTML element. The stack level refers to the element&#8217;s position on the Z axis (as opposed to the X axis or Y axis). A higher z-index value means the element will be closer to the top of the stacking order. This stacking order [...]]]></description>
			<content:encoded><![CDATA[<div class="entry-content">
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">What is z-index?</div>
</p></div>
</p></div>
</p></div>
</p></div>
<p>The <span class="highlighted">z-index</span> property determines <span class="highlighted">the stack level of an HTML element</span>. The stack level refers to the element&#8217;s position on the <span class="highlighted">Z axis</span> (as opposed to the X axis or Y axis). A higher z-index value means the element will be closer to the top of the stacking order. This stacking order runs perpendicular ot the display, or viewport.</p>
<p>          		<img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/graphical-z-index.gif" alt="Graphical Z Index" title="Graphical Z Index" width="450" height="399" class="alignnone size-full wp-image-311" /></p>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">The Natural Stacking Order</div>
</p></div>
</p></div>
</p></div>
</p></div>
<p>In an HTML page, the natural <span class="highlighted">stacking order</span> (i.e. the order of elements on the Z axis) is determined by <span class="highlighted">a number of factors</span>. Below is a list showing the order that iterms fit into <span class="highlighted">a stacking context</span>, starting with the bottom of the stack. This list assumes none of the items has z-index applied:</p>
<ul class="entry-list">
<li>Background and borders of the element that establish stacking context.</li>
<li>Elements with negative stacking contexts, in order of appearance.</li>
<li>Non-positioned, non-floated, block-level elements, in order of appearance.</li>
<li>Non-positioned, floated elements, in order of appearances.</li>
<li>Inline elements, in order of appearance.</li>
<li>Positioned elements, in order of appearance.</li>
</ul>
<div style="width:150px;height:150px;font-size:12px;color:#bf250a;text-align:center;line-height:250%;background-color:#facdc5;border:1px solid #bf250a;margin:0;">Red Box</div>
<div style="width:150px;height:150px;font-size:12px;color:#4cbf0a;text-align:center;line-height:250%;background-color:#d7fac3;border:1px solid #4cbf0a;margin:-120px 0 0 50px;">Green Box</div>
<div style="width:150px;height:150px;font-size:12px;color:#1e7bcc;text-align:center;line-height:250%;background-color:#c3e0fa;border:1px solid #1e7bcc;margin:-120px 0 0 100px;">Blue Box</div>
<p><span class="highlighted">The elements above do not have z-index values set</span>; their stacking order is the natural, or default, order. The overlaps that occur are due to the negative margins.</p>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Why Does It Cause Confusion?</div>
</p></div>
</p></div>
</p></div>
</p></div>
<p>Although z-index is not a difficult proerpty to understand, due to false assumptions it can cause confusion for beginning developers. This confusion occurs because <span class="highlighted">z-index will only work on an element whose position property has been explicitly set to absolute, fixed, or relative</span>.</p>
<div style="width:150px;height:150px;font-size:12px;color:#bf250a;text-align:center;line-height:200%;background-color:#facdc5;border:1px solid #bf250a;margin:0;z-index:1000;">z-index:1000;</div>
<div style="width:150px;height:150px;font-size:12px;color:#4cbf0a;text-align:center;line-height:200%;background-color:#d7fac3;border:1px solid #4cbf0a;margin:-120px 0 0 50px;z-index:500;">z-index:500;</div>
<div style="width:150px;height:150px;font-size:12px;color:#1e7bcc;text-align:center;line-height:200%;background-color:#c3e0fa;border:1px solid #1e7bcc;margin:-120px 0 0 100px;z-index:1;">z-index:1;</div>
<p>&nbsp;</p>
<div style="width:150px;height:150px;font-size:12px;color:#bf250a;text-align:center;line-height:200%;background-color:#facdc5;border:1px solid #bf250a;margin:0;z-index:500;position:relative;">z-index:500;<br />position:relative;</div>
<div style="width:150px;height:150px;font-size:12px;color:#4cbf0a;text-align:center;line-height:200%;background-color:#d7fac3;border:1px solid #4cbf0a;margin:-110px 0 0 130px;z-index:1000;position:absolute;">z-index:1000;<br />position:absolute;</div>
<div style="width:150px;height:150px;font-size:12px;color:#1e7bcc;text-align:center;line-height:200%;background-color:#c3e0fa;border:1px solid #1e7bcc;margin:-50px 0 0 70px;z-index:1;position:relative;">
<p>z-index:1;<br />position:relative;</div>
<p>&nbsp;</p>
<p>The z-index property can affect the stack order of both block-level and inline elements, and is declared by <span class="highlighted">a positive or negative integer value</span>, or a vluae of <span class="highlighted">auto</span>. <span class="highlighted">A value of auto gives the element the same stack order as its parent.</span></p>
<div style="width:150px;height:150px;font-size:12px;color:#bf250a;text-align:center;line-height:200%;background-color:#facdc5;border:1px solid #bf250a;margin:0;z-index:500;position:relative;">z-index:500;<br />position:relative;</div>
<div style="width:150px;height:150px;font-size:12px;color:#4cbf0a;text-align:center;line-height:200%;background-color:#d7fac3;border:1px solid #4cbf0a;margin:-110px 0 0 130px;z-index:1000;position:absolute;">z-index:1000;<br />position:absolute;</p>
<div style="width:100px;height:100px;font-size:12px;color:#1e7bcc;text-align:center;line-height:200%;background-color:#c3e0fa;border:1px solid #1e7bcc;margin:0 0 0 -20px;z-index:auto;position:relative;">z-index:auto;<br />position:relative;</div>
</p></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div style="width:150px;height:150px;font-size:12px;color:#bf250a;text-align:center;line-height:200%;background-color:#facdc5;border:1px solid #bf250a;margin:0;z-index:500;position:relative;">z-index:500;<br />position:relative;</div>
<div style="width:150px;height:150px;font-size:12px;color:#4cbf0a;text-align:center;line-height:200%;background-color:#d7fac3;border:1px solid #4cbf0a;margin:-110px 0 0 130px;z-index:0;position:relative;">z-index:0;<br />position:relative;</div>
<div style="width:150px;height:150px;font-size:12px;color:#1e7bcc;text-align:center;line-height:200%;background-color:#c3e0fa;border:1px solid #1e7bcc;margin:-100px 0 0 70px;z-index:100;">
<p>z-index:100;</div>
<p>&nbsp;</p>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Related Posts</div>
</p></div>
</p></div>
</p></div>
</p></div>
<ul class="entry-list">
<li><a href="http://www.smashingmagazine.com/2009/09/15/the-z-index-css-property-a-comprehensive-look/" target="_blank">The Z-Index CSS Property: A Comprehensive Look</a></li>
</ul></div>
]]></content:encoded>
			<wfw:commentRss>http://www.lingihuang.com/viviancrap/archives/stack-order/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Color Picker</title>
		<link>http://www.lingihuang.com/viviancrap/archives/color-picker/</link>
		<comments>http://www.lingihuang.com/viviancrap/archives/color-picker/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 16:08:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.lingihuang.com/viviancrap/archives/color-picker/</guid>
		<description><![CDATA[Color Palette for Web Below is a chart covering the 216 hexidecimal color values from the web safe palette. Use this chart if you prefer to use colors from the web safe palette. #FFFFFF #FFFFCC #FFFF99 #FFFF66 #FFFF33 #FFFF00 #FFCCFF #FFCCCC #FFCC99 #FFCC66 #FFCC33 #FFCC00 #FF99FF #FF99CC #FF9999 #FF9966 #FF9933 #FF9900 #FF66FF #FF66CC #FF6699 #FF6666 [...]]]></description>
			<content:encoded><![CDATA[<div class="entry-content">
         		<iframe src="http://www.lingihuang.com/viviancrap/wp-content/themes/default/color_picker_sample.html" width="360" height="180" frameBorder="0" marginWidth="0" marginHeight="0" scrolling="no"></iframe></p>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Color Palette for Web</div>
</p></div>
</p></div>
</p></div>
</p></div>
<p>Below is a chart covering the 216 hexidecimal color values from the web safe palette. Use this chart if you prefer to use colors from the web safe palette.</p>
<ul class="color-palette clearfix">
<li class="font-color-black" style="background-color: rgb(255, 255, 255);">#FFFFFF</li>
<li class="font-color-black" style="background-color: rgb(255, 255, 204);">#FFFFCC</li>
<li class="font-color-black" style="background-color: rgb(255, 255, 153);">#FFFF99</li>
<li class="font-color-black" style="background-color: rgb(255, 255, 102);">#FFFF66</li>
<li class="font-color-black" style="background-color: rgb(255, 255, 51);">#FFFF33</li>
<li class="font-color-black" style="background-color: rgb(255, 255, 0);">#FFFF00</li>
<li class="font-color-black" style="background-color: rgb(255, 204, 255);">#FFCCFF</li>
<li class="font-color-black" style="background-color: rgb(255, 204, 204);">#FFCCCC</li>
<li class="font-color-black" style="background-color: rgb(255, 204, 153);">#FFCC99</li>
<li class="font-color-black" style="background-color: rgb(255, 204, 102);">#FFCC66</li>
<li class="font-color-black" style="background-color: rgb(255, 204, 51);">#FFCC33</li>
<li class="font-color-black" style="background-color: rgb(255, 204, 0);">#FFCC00</li>
<li class="font-color-black" style="background-color: rgb(255, 153, 255);">#FF99FF</li>
<li class="font-color-black" style="background-color: rgb(255, 153, 204);">#FF99CC</li>
<li class="font-color-black" style="background-color: rgb(255, 153, 153);">#FF9999</li>
<li class="font-color-black" style="background-color: rgb(255, 153, 102);">#FF9966</li>
<li class="font-color-black" style="background-color: rgb(255, 153, 51);">#FF9933</li>
<li class="font-color-black" style="background-color: rgb(255, 153, 0);">#FF9900</li>
<li class="font-color-black" style="background-color: rgb(255, 102, 255);">#FF66FF</li>
<li class="font-color-black" style="background-color: rgb(255, 102, 204);">#FF66CC</li>
<li class="font-color-black" style="background-color: rgb(255, 102, 153);">#FF6699</li>
<li class="font-color-black" style="background-color: rgb(255, 102, 102);">#FF6666</li>
<li class="font-color-black" style="background-color: rgb(255, 102, 51);">#FF6633</li>
<li class="font-color-black" style="background-color: rgb(255, 102, 0);">#FF6600</li>
<li class="font-color-black" style="background-color: rgb(255, 51, 255);">#FF33FF</li>
<li class="font-color-black" style="background-color: rgb(255, 51, 204);">#FF33CC</li>
<li class="font-color-black" style="background-color: rgb(255, 51, 153);">#FF3399</li>
<li class="font-color-black" style="background-color: rgb(255, 51, 102);">#FF3366</li>
<li class="font-color-black" style="background-color: rgb(255, 51, 51);">#FF3333</li>
<li class="font-color-black" style="background-color: rgb(255, 51, 0);">#FF3300</li>
<li class="font-color-black" style="background-color: rgb(255, 0, 255);">#FF00FF</li>
<li class="font-color-black" style="background-color: rgb(255, 0, 204);">#FF00CC</li>
<li class="font-color-black" style="background-color: rgb(255, 0, 153);">#FF0099</li>
<li class="font-color-black" style="background-color: rgb(255, 0, 102);">#FF0066</li>
<li class="font-color-black" style="background-color: rgb(255, 0, 51);">#FF0033</li>
<li class="font-color-black" style="background-color: rgb(255, 0, 0);">#FF0000</li>
<li class="font-color-black" style="background-color: rgb(204, 255, 255);">#CCFFFF</li>
<li class="font-color-black" style="background-color: rgb(204, 255, 204);">#CCFFCC</li>
<li class="font-color-black" style="background-color: rgb(204, 255, 153);">#CCFF99</li>
<li class="font-color-black" style="background-color: rgb(204, 255, 102);">#CCFF66</li>
<li class="font-color-black" style="background-color: rgb(204, 255, 51);">#CCFF33</li>
<li class="font-color-black" style="background-color: rgb(204, 255, 0);">#CCFF00</li>
<li class="font-color-black" style="background-color: rgb(204, 204, 255);">#CCCCFF</li>
<li class="font-color-black" style="background-color: rgb(204, 204, 204);">#CCCCCC</li>
<li class="font-color-black" style="background-color: rgb(204, 204, 153);">#CCCC99</li>
<li class="font-color-black" style="background-color: rgb(204, 204, 102);">#CCCC66</li>
<li class="font-color-black" style="background-color: rgb(204, 204, 51);">#CCCC33</li>
<li class="font-color-black" style="background-color: rgb(204, 204, 0);">#CCCC00</li>
<li class="font-color-black" style="background-color: rgb(204, 153, 255);">#CC99FF</li>
<li class="font-color-black" style="background-color: rgb(204, 153, 204);">#CC99CC</li>
<li class="font-color-black" style="background-color: rgb(204, 153, 153);">#CC9999</li>
<li class="font-color-black" style="background-color: rgb(204, 153, 102);">#CC9966</li>
<li class="font-color-black" style="background-color: rgb(204, 153, 51);">#CC9933</li>
<li class="font-color-black" style="background-color: rgb(204, 153, 0);">#CC9900</li>
<li class="font-color-black" style="background-color: rgb(204, 102, 255);">#CC66FF</li>
<li class="font-color-black" style="background-color: rgb(204, 102, 204);">#CC66CC</li>
<li class="font-color-black" style="background-color: rgb(204, 102, 153);">#CC6699</li>
<li class="font-color-black" style="background-color: rgb(204, 102, 102);">#CC6666</li>
<li class="font-color-black" style="background-color: rgb(204, 102, 51);">#CC6633</li>
<li class="font-color-black" style="background-color: rgb(204, 102, 0);">#CC6600</li>
<li class="font-color-black" style="background-color: rgb(204, 51, 255);">#CC33FF</li>
<li class="font-color-black" style="background-color: rgb(204, 51, 204);">#CC33CC</li>
<li class="font-color-black" style="background-color: rgb(204, 51, 153);">#CC3399</li>
<li class="font-color-black" style="background-color: rgb(204, 51, 102);">#CC3366</li>
<li class="font-color-black" style="background-color: rgb(204, 51, 51);">#CC3333</li>
<li class="font-color-black" style="background-color: rgb(204, 51, 0);">#CC3300</li>
<li class="font-color-black" style="background-color: rgb(204, 0, 255);">#CC00FF</li>
<li class="font-color-black" style="background-color: rgb(204, 0, 204);">#CC00CC</li>
<li class="font-color-black" style="background-color: rgb(204, 0, 153);">#CC0099</li>
<li class="font-color-black" style="background-color: rgb(204, 0, 102);">#CC0066</li>
<li class="font-color-black" style="background-color: rgb(204, 0, 51);">#CC0033</li>
<li class="font-color-black" style="background-color: rgb(204, 0, 0);">#CC0000</li>
<li class="font-color-black" style="background-color: rgb(153, 255, 255);">#99FFFF</li>
<li class="font-color-black" style="background-color: rgb(153, 255, 204);">#99FFCC</li>
<li class="font-color-black" style="background-color: rgb(153, 255, 153);">#99FF99</li>
<li class="font-color-black" style="background-color: rgb(153, 255, 102);">#99FF66</li>
<li class="font-color-black" style="background-color: rgb(153, 255, 51);">#99FF33</li>
<li class="font-color-black" style="background-color: rgb(153, 255, 0);">#99FF00</li>
<li class="font-color-black" style="background-color: rgb(153, 204, 255);">#99CCFF</li>
<li class="font-color-black" style="background-color: rgb(153, 204, 204);">#99CCCC</li>
<li class="font-color-black" style="background-color: rgb(153, 204, 153);">#99CC99</li>
<li class="font-color-black" style="background-color: rgb(153, 204, 102);">#99CC66</li>
<li class="font-color-black" style="background-color: rgb(153, 204, 51);">#99CC33</li>
<li class="font-color-black" style="background-color: rgb(153, 204, 0);">#99CC00</li>
<li class="font-color-black" style="background-color: rgb(153, 153, 255);">#9999FF</li>
<li class="font-color-black" style="background-color: rgb(153, 153, 204);">#9999CC</li>
<li class="font-color-black" style="background-color: rgb(153, 153, 153);">#999999</li>
<li class="font-color-black" style="background-color: rgb(153, 153, 102);">#999966</li>
<li class="font-color-black" style="background-color: rgb(153, 153, 51);">#999933</li>
<li class="font-color-black" style="background-color: rgb(153, 153, 0);">#999900</li>
<li class="font-color-black" style="background-color: rgb(153, 102, 255);">#9966FF</li>
<li class="font-color-black" style="background-color: rgb(153, 102, 204);">#9966CC</li>
<li class="font-color-black" style="background-color: rgb(153, 102, 153);">#996699</li>
<li class="font-color-black" style="background-color: rgb(153, 102, 102);">#996666</li>
<li class="font-color-black" style="background-color: rgb(153, 102, 51);">#996633</li>
<li class="font-color-black" style="background-color: rgb(153, 102, 0);">#996600</li>
<li class="font-color-black" style="background-color: rgb(153, 51, 255);">#9933FF</li>
<li class="font-color-black" style="background-color: rgb(153, 51, 204);">#9933CC</li>
<li class="font-color-black" style="background-color: rgb(153, 51, 153);">#993399</li>
<li class="font-color-black" style="background-color: rgb(153, 51, 102);">#993366</li>
<li class="font-color-black" style="background-color: rgb(153, 51, 51);">#993333</li>
<li class="font-color-black" style="background-color: rgb(153, 51, 0);">#993300</li>
<li class="font-color-black" style="background-color: rgb(153, 0, 255);">#9900FF</li>
<li class="font-color-black" style="background-color: rgb(153, 0, 204);">#9900CC</li>
<li class="font-color-black" style="background-color: rgb(153, 0, 153);">#990099</li>
<li class="font-color-black" style="background-color: rgb(153, 0, 102);">#990066</li>
<li class="font-color-black" style="background-color: rgb(153, 0, 51);">#990033</li>
<li class="font-color-black" style="background-color: rgb(153, 0, 0);">#990000</li>
<li class="font-color-black" style="background-color: rgb(102, 255, 255);">#66FFFF</li>
<li class="font-color-black" style="background-color: rgb(102, 255, 204);">#66FFCC</li>
<li class="font-color-black" style="background-color: rgb(102, 255, 153);">#66FF99</li>
<li class="font-color-black" style="background-color: rgb(102, 255, 102);">#66FF66</li>
<li class="font-color-black" style="background-color: rgb(102, 255, 51);">#66FF33</li>
<li class="font-color-black" style="background-color: rgb(102, 255, 0);">#66FF00</li>
<li class="font-color-black" style="background-color: rgb(102, 204, 255);">#66CCFF</li>
<li class="font-color-black" style="background-color: rgb(102, 204, 204);">#66CCCC</li>
<li class="font-color-black" style="background-color: rgb(102, 204, 153);">#66CC99</li>
<li class="font-color-black" style="background-color: rgb(102, 204, 102);">#66CC66</li>
<li class="font-color-black" style="background-color: rgb(102, 204, 51);">#66CC33</li>
<li class="font-color-black" style="background-color: rgb(102, 204, 0);">#66CC00</li>
<li class="font-color-black" style="background-color: rgb(102, 153, 255);">#6699FF</li>
<li class="font-color-black" style="background-color: rgb(102, 153, 204);">#6699CC</li>
<li class="font-color-black" style="background-color: rgb(102, 153, 153);">#669999</li>
<li class="font-color-black" style="background-color: rgb(102, 153, 102);">#669966</li>
<li class="font-color-black" style="background-color: rgb(102, 153, 51);">#669933</li>
<li class="font-color-black" style="background-color: rgb(102, 153, 0);">#669900</li>
<li class="font-color-white" style="background-color: rgb(102, 102, 255);">#6666FF</li>
<li class="font-color-white" style="background-color: rgb(102, 102, 204);">#6666CC</li>
<li class="font-color-white" style="background-color: rgb(102, 102, 153);">#666699</li>
<li class="font-color-white" style="background-color: rgb(102, 102, 102);">#666666</li>
<li class="font-color-white" style="background-color: rgb(102, 102, 51);">#666633</li>
<li class="font-color-white" style="background-color: rgb(102, 96, 0);">#666000</li>
<li class="font-color-white" style="background-color: rgb(102, 51, 255);">#6633FF</li>
<li class="font-color-white" style="background-color: rgb(102, 51, 204);">#6633CC</li>
<li class="font-color-white" style="background-color: rgb(102, 51, 153);">#663399</li>
<li class="font-color-white" style="background-color: rgb(102, 51, 102);">#663366</li>
<li class="font-color-white" style="background-color: rgb(102, 51, 51);">#663333</li>
<li class="font-color-white" style="background-color: rgb(102, 51, 0);">#663300</li>
<li class="font-color-white" style="background-color: rgb(102, 0, 255);">#6600FF</li>
<li class="font-color-white" style="background-color: rgb(102, 0, 204);">#6600CC</li>
<li class="font-color-white" style="background-color: rgb(102, 0, 153);">#660099</li>
<li class="font-color-white" style="background-color: rgb(102, 0, 102);">#660066</li>
<li class="font-color-white" style="background-color: rgb(102, 0, 51);">#660033</li>
<li class="font-color-white" style="background-color: rgb(102, 96, 0);">#660000</li>
<li class="font-color-black" style="background-color: rgb(51, 255, 255);">#33FFFF</li>
<li class="font-color-black" style="background-color: rgb(51, 255, 204);">#33FFCC</li>
<li class="font-color-black" style="background-color: rgb(51, 255, 153);">#33FF99</li>
<li class="font-color-black" style="background-color: rgb(51, 255, 102);">#33FF66</li>
<li class="font-color-black" style="background-color: rgb(51, 255, 51);">#33FF33</li>
<li class="font-color-black" style="background-color: rgb(51, 255, 0);">#33FF00</li>
<li class="font-color-black" style="background-color: rgb(51, 204, 255);">#33CCFF</li>
<li class="font-color-black" style="background-color: rgb(51, 204, 204);">#33CCCC</li>
<li class="font-color-black" style="background-color: rgb(51, 204, 153);">#33CC99</li>
<li class="font-color-black" style="background-color: rgb(51, 204, 102);">#33CC66</li>
<li class="font-color-black" style="background-color: rgb(51, 204, 51);">#33CC33</li>
<li class="font-color-black" style="background-color: rgb(51, 204, 0);">#33CC00</li>
<li class="font-color-black" style="background-color: rgb(51, 153, 255);">#3399FF</li>
<li class="font-color-black" style="background-color: rgb(51, 153, 204);">#3399CC</li>
<li class="font-color-black" style="background-color: rgb(51, 153, 153);">#339999</li>
<li class="font-color-black" style="background-color: rgb(51, 153, 102);">#339966</li>
<li class="font-color-black" style="background-color: rgb(51, 153, 51);">#339933</li>
<li class="font-color-black" style="background-color: rgb(51, 153, 0);">#339900</li>
<li class="font-color-white" style="background-color: rgb(51, 102, 255);">#3366FF</li>
<li class="font-color-white" style="background-color: rgb(51, 102, 204);">#3366CC</li>
<li class="font-color-white" style="background-color: rgb(51, 102, 153);">#336699</li>
<li class="font-color-white" style="background-color: rgb(51, 102, 102);">#336666</li>
<li class="font-color-white" style="background-color: rgb(51, 102, 51);">#336633</li>
<li class="font-color-white" style="background-color: rgb(51, 102, 0);">#336600</li>
<li class="font-color-white" style="background-color: rgb(51, 51, 255);">#3333FF</li>
<li class="font-color-white" style="background-color: rgb(51, 51, 204);">#3333CC</li>
<li class="font-color-white" style="background-color: rgb(51, 51, 153);">#333399</li>
<li class="font-color-white" style="background-color: rgb(51, 51, 102);">#333366</li>
<li class="font-color-white" style="background-color: rgb(51, 51, 51);">#333333</li>
<li class="font-color-white" style="background-color: rgb(51, 51, 0);">#333300</li>
<li class="font-color-white" style="background-color: rgb(51, 0, 255);">#3300FF</li>
<li class="font-color-white" style="background-color: rgb(51, 0, 204);">#3300CC</li>
<li class="font-color-white" style="background-color: rgb(51, 0, 153);">#330099</li>
<li class="font-color-white" style="background-color: rgb(51, 0, 102);">#330066</li>
<li class="font-color-white" style="background-color: rgb(51, 0, 51);">#330033</li>
<li class="font-color-white" style="background-color: rgb(51, 0, 0);">#330000</li>
<li class="font-color-black" style="background-color: rgb(0, 255, 255);">#00FFFF</li>
<li class="font-color-black" style="background-color: rgb(0, 255, 204);">#00FFCC</li>
<li class="font-color-black" style="background-color: rgb(0, 255, 153);">#00FF99</li>
<li class="font-color-black" style="background-color: rgb(0, 255, 102);">#00FF66</li>
<li class="font-color-black" style="background-color: rgb(0, 255, 51);">#00FF33</li>
<li class="font-color-black" style="background-color: rgb(0, 255, 0);">#00FF00</li>
<li class="font-color-black" style="background-color: rgb(0, 204, 255);">#00CCFF</li>
<li class="font-color-black" style="background-color: rgb(0, 204, 204);">#00CCCC</li>
<li class="font-color-black" style="background-color: rgb(0, 204, 153);">#00CC99</li>
<li class="font-color-black" style="background-color: rgb(0, 204, 102);">#00CC66</li>
<li class="font-color-black" style="background-color: rgb(0, 204, 51);">#00CC33</li>
<li class="font-color-black" style="background-color: rgb(0, 204, 0);">#00CC00</li>
<li class="font-color-black" style="background-color: rgb(0, 153, 255);">#0099FF</li>
<li class="font-color-black" style="background-color: rgb(0, 153, 204);">#0099CC</li>
<li class="font-color-black" style="background-color: rgb(0, 153, 153);">#009999</li>
<li class="font-color-black" style="background-color: rgb(0, 153, 102);">#009966</li>
<li class="font-color-black" style="background-color: rgb(0, 153, 51);">#009933</li>
<li class="font-color-black" style="background-color: rgb(0, 153, 0);">#009900</li>
<li class="font-color-white" style="background-color: rgb(0, 102, 255);">#0066FF</li>
<li class="font-color-white" style="background-color: rgb(0, 102, 204);">#0066CC</li>
<li class="font-color-white" style="background-color: rgb(0, 102, 153);">#006699</li>
<li class="font-color-white" style="background-color: rgb(0, 102, 102);">#006666</li>
<li class="font-color-white" style="background-color: rgb(0, 102, 51);">#006633</li>
<li class="font-color-white" style="background-color: rgb(0, 102, 0);">#006600</li>
<li class="font-color-white" style="background-color: rgb(0, 51, 255);">#0033FF</li>
<li class="font-color-white" style="background-color: rgb(0, 51, 204);">#0033CC</li>
<li class="font-color-white" style="background-color: rgb(0, 51, 153);">#003399</li>
<li class="font-color-white" style="background-color: rgb(0, 51, 102);">#003366</li>
<li class="font-color-white" style="background-color: rgb(0, 51, 51);">#003333</li>
<li class="font-color-white" style="background-color: rgb(0, 51, 0);">#003300</li>
<li class="font-color-white" style="background-color: rgb(0, 0, 255);">#0000FF</li>
<li class="font-color-white" style="background-color: rgb(0, 0, 204);">#0000CC</li>
<li class="font-color-white" style="background-color: rgb(0, 0, 153);">#000099</li>
<li class="font-color-white" style="background-color: rgb(0, 0, 102);">#000066</li>
<li class="font-color-white" style="background-color: rgb(0, 0, 51);">#000033</li>
<li class="font-color-white" style="background-color: rgb(0, 0, 0);">#000000</li>
</ul>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Related Posts</div>
</p></div>
</p></div>
</p></div>
</p></div>
<ul class="entry-list">
<li><a href="http://www.quackit.com/css/css_color_codes.cfm" target="_blank">CSS Color Codes</a></li>
<li><a href="http://eyecon.ro/colorpicker/#about" target="_blank">ColorPicker &#8211; jQuery Plugin</a></li>
</ul></div>
]]></content:encoded>
			<wfw:commentRss>http://www.lingihuang.com/viviancrap/archives/color-picker/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disable Text Selection</title>
		<link>http://www.lingihuang.com/viviancrap/archives/disable-text-selection/</link>
		<comments>http://www.lingihuang.com/viviancrap/archives/disable-text-selection/#comments</comments>
		<pubDate>Wed, 15 Apr 2009 15:10:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.lingihuang.com/viviancrap/?p=43</guid>
		<description><![CDATA[Disable Text Selection With CSS &#60;div unselectable="on"&#62;&#60;/div&#62; /* For IE */ .classname { user-select: none; -moz-user-select: none; /* For Firefox */ -khtml-user-select: none; /* For Safari */ -o-user-select: none; /* For Opera */ } With Javascript var disableTextSelection = function(element) { element.unselectable = "on"; /* For IE */ element.style.UserSelect = "none"; element.style.MozUserSelect = "none"; /* [...]]]></description>
			<content:encoded><![CDATA[<div class="entry-content">
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Disable Text Selection</div>
</p></div>
</p></div>
</p></div>
</p></div>
<ul class="entry-list">
<li>With CSS</li>
<pre>
          				<code class="text-indent-0"><span class="element">&lt;div</span> <span class="attribute">unselectable</span>=<span class="value">"on"</span><span class="element">&gt;</span><span class="element">&lt;/div&gt;</span> <span class="comment">/* For IE */</span></code>
          			</pre>
<pre>
          				<code class="text-indent-0"><span class="class">.classname</span> <span class="keyword">{</span></code>
          					<code class="text-indent-1"><span class="attribute">user-select</span>: <span class="value">none</span>;</code>
          					<code class="text-indent-1"><span class="attribute">-moz-user-select</span>: <span class="value">none</span>; <span class="comment">/* For Firefox */</span></code>
          					<code class="text-indent-1"><span class="attribute">-khtml-user-select</span>: <span class="value">none</span>; <span class="comment">/* For Safari */</span></code>
          					<code class="text-indent-1"><span class="attribute">-o-user-select</span>: <span class="value">none</span>; <span class="comment">/* For Opera */</span></code>
          				<code class="text-indent-0"><span class="keyword">}</span></code>
          			</pre>
<li>With Javascript</li>
<pre>
          				<code class="text-indent-0"><span class="keyword">var</span> <span class="variable">disableTextSelection</span> <span class="keyword">= function(</span><span class="variable">element</span><span class="keyword">) {</span></code>
          					<code class="text-indent-1"><span class="element">element</span>.<span class="attribute">unselectable</span> = <span class="value">"on"</span>; <span class="comment">/* For IE */</span></code>
          					<code class="text-indent-1"><span class="element">element</span>.<span class="keyword">style</span>.<span class="attribute">UserSelect</span> = <span class="value">"none"</span>;</code>
          					<code class="text-indent-1"><span class="element">element</span>.<span class="keyword">style</span>.<span class="attribute">MozUserSelect</span> = <span class="value">"none"</span>; <span class="comment">/* For Firefox */</span></code>
          					<code class="text-indent-1"><span class="element">element</span>.<span class="keyword">style</span>.<span class="attribute">KhtmlUserSelect</span> = <span class="value">"none"</span>; <span class="comment">/* For Safari */</span></code>
          					<code class="text-indent-1"><span class="element">element</span>.<span class="keyword">style</span>.<span class="attribute">OUserSelect</span> = <span class="value">"none"</span>; <span class="comment">/* For Opera */</span></code>
          				<code class="text-indent-0"><span class="keyword">};</span></code>
          			</pre>
</ul></div>
]]></content:encoded>
			<wfw:commentRss>http://www.lingihuang.com/viviancrap/archives/disable-text-selection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Opacity Setting</title>
		<link>http://www.lingihuang.com/viviancrap/archives/opacity-setting/</link>
		<comments>http://www.lingihuang.com/viviancrap/archives/opacity-setting/#comments</comments>
		<pubDate>Sun, 08 Mar 2009 12:20:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.lingihuang.com/viviancrap/?p=16</guid>
		<description><![CDATA[Opacity Setting With CSS .classname { opacity: 0.5; /* For Newer Mozilla Browsers, Safari, and Opera */ -moz-opacity: 0.5 /* For Older Mozilla Browsers, like Netscape Navigator */ -khtml-opacity: 0.5; /* For Older Safari */ -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(opacity=50)"; /* For IE 8 */ filter: alpha(opacity=50); /* For IE 6 and IE 7 */ } With Javascript [...]]]></description>
			<content:encoded><![CDATA[<div class="entry-content">
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Opacity Setting</div>
</p></div>
</p></div>
</p></div>
</p></div>
<ul class="entry-list">
<li>With CSS</li>
<pre>
          				<code class="text-indent-0"><span class="class">.classname</span> <span class="keyword">{</span></code>
          					<code class="text-indent-1"><span class="attribute">opacity:</span> <span class="value">0.5;</span> <span class="comment">/* For Newer Mozilla Browsers, Safari, and Opera */</span></code>
          					<code class="text-indent-1"><span class="attribute">-moz-opacity:</span> <span class="value">0.5</span> <span class="comment">/* For Older Mozilla Browsers, like Netscape Navigator */</span></code>
          					<code class="text-indent-1"><span class="attribute">-khtml-opacity:</span> <span class="value">0.5;</span> <span class="comment">/* For Older Safari */</span></code>
          					<code class="text-indent-1"><span class="attribute">-ms-filter:</span> <span class="value">"progid:DXImageTransform.Microsoft.Alpha(opacity=50)";</span> <span class="comment">/* For IE 8 */</span></code>
          					<code class="text-indent-1"><span class="attribute">filter:</span> <span class="value">alpha(opacity=50);</span> <span class="comment">/* For IE 6 and IE 7 */</span></code>
          				<code class="text-indent-0"><span class="keyword">}</span></code>
          			</pre>
<li>With Javascript</li>
<pre>
          				<code class="text-indent-0"><span class="keyword">var</span> <span class="variable">setOpacity</span> <span class="keyword">= function(</span><span class="element">element</span>, <span class="variable">value</span><span class="keyword">) {</span></code>
          					<code class="text-indent-1"><span class="element">element</span>.<span class="keyword">style</span>.<span class="attribute">opacity</span> = <span class="value">value / 100</span>; <span class="comment">/* For Newer Mozilla Browsers, Safari, and Opera */</span></code>
          					<code class="text-indent-1"><span class="element">element</span>.<span class="keyword">style</span>.<span class="attribute">MozOpacity</span> = <span class="value">value / 100</span>; <span class="comment">/* For Older Mozilla Browsers, like Netscape Navigator */</span></code>
          					<code class="text-indent-1"><span class="element">element</span>.<span class="keyword">style</span>.<span class="attribute">KhtmlOpacity</span> = <span class="value">value / 100</span>; <span class="comment">/* For Older Safari */</span></code></code>
          					<code class="text-indent-1"><span class="element">element</span>.<span class="keyword">style</span>.<span class="attribute">MsFilter</span> = <span class="value">'"progid:DXImageTransform.Microsoft.Alpha(opacity=' + value + ')"'</span>; <span class="comment">/* For IE8 */</span></code></code>
          					<code class="text-indent-1"><span class="element">element</span>.<span class="keyword">style</span>.<span class="attribute">filter</span> = <span class="value">"alpha(opacity=" + value + ")"</span>; <span class="comment">/* For IE 6 and IE7 */</span></code></code>
          				<code class="text-indent-0"><span class="keyword">};</span></code>
          			</pre>
</ul>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Related Posts</div>
</p></div>
</p></div>
</p></div>
</p></div>
<ul class="entry-list">
<li><a href="http://css-tricks.com/css-transparency-settings-for-all-broswers/" target="_blank">CSS Transparency Settings for All Browsers</a></li>
<li><a href="http://www.ssi-developer.net/css/visual-filters.shtml" target="_blank">IE CSS Visual Filters</a></li>
</ul></div>
]]></content:encoded>
			<wfw:commentRss>http://www.lingihuang.com/viviancrap/archives/opacity-setting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS PNG Transparency</title>
		<link>http://www.lingihuang.com/viviancrap/archives/css-png-transparency/</link>
		<comments>http://www.lingihuang.com/viviancrap/archives/css-png-transparency/#comments</comments>
		<pubDate>Sun, 08 Mar 2009 12:04:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.lingihuang.com/viviancrap/?p=14</guid>
		<description><![CDATA[Working With Backgrounds in CSS 2 The Background Shorthand Property background: transparent url(images/image.png) left top scroll no-repeat; One important thing to note is that the background accounts for the contents of the element, including the padding and border. It does not include an element&#8217;s margin. This works as it should in Firefox, Safari and Opera, [...]]]></description>
			<content:encoded><![CDATA[<div class="entry-content">
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Working With Backgrounds in CSS 2</div>
</p></div>
</p></div>
</p></div>
</p></div>
<h4 class="subtitle align-subtitle">The Background Shorthand Property</h4>
<pre>
          			<code class="text-indent-0"><span class="attribute">background</span>: <span class="value">transparent url(images/image.png) left top scroll no-repeat;</span></code>
          		</pre>
<p>One important thing to note is that the background accounts for the contents of the element, <span class="highlighted">including the padding and border</span>. It does not include an element&#8217;s margin. This works as it should in Firefox, Safari and Opera, and now in IE8. But in IE7 and IE6 the background does not include the border.</p>
<h4 class="subtitle align-subtitle">Background Color</h4>
<p>The <span class="highlighted">background-color</span> property fills the background with a solid color. There are a number of ways to specify the color.</p>
<pre>
					<code class="text-indent-0"><span class="attribute">background-color</span>: <span class="value">black</span>;</code>
					<code class="text-indent-0"><span class="attribute">background-color</span>: <span class="value">rgb(0, 0, 0)</span>;</code>
					<code class="text-indent-0"><span class="attribute">background-color</span>: <span class="value">#000000</span>;</code>
				</pre>
<p>The <span class="highlighted">background-color</span> property can also be set to <span class="highlighted">transparent</span>, which makes any elements underneath it visible instead.</p>
<h4 class="subtitle align-subtitle">Background Image</h4>
<p>The <span class="highlighted">background-image</span> property allows you to <span class="highlighted">specify an image</span> to be displayed in the background. This can be used in conjunction with <span class="highlighted">background-color</span>, so if your image is not tiled, then any space that the image does not cover will be set to the background color. The path of the image is <span class="highlighted">relative</span> to the style sheet. So, in the following snippet, the image is in the same directory as the style sheet.</p>
<pre>
          			<code class="text-indent-0"><span class="attribute">background-image</span>: <span class="value">url(image.jpg)</span>;</code>
          		</pre>
<h4 class="subtitle align-subtitle">Background Position</h4>
<p>The <span class="highlighted">background-position</span> property controls <span class="highlighted">where a background image is located in an element</span>. The trick with background-position is that you are actually specifying where the <span class="highlighted">top-left</span> corner of the image will be positioned, relative to the top-left corner of the element.</p>
<p>In the examples below, we have set a background image and are using the background-position property to control it. We have also set <span class="highlighted">background-repeat</span> to <span class="highlighted">no-repeat</span>. The measurements are all in <span class="highlighted">pixels</span>. The first digit is the <span class="highlighted">x-axis</span> position (horizontal) and the second is the <span class="highlighted">y-axis</span> position (vertical).</p>
<p>The background-position property also works with other values, <span class="highlighted">keywords</span> and <span class="highlighted">percentages</span>, which can be useful, especially when an element&#8217;s size is not set in pixels.</p>
<p>The keywords are self-explanatory. For the x-axis: <span class="highlighted">left</span>, <span class="highlighted">center</span>, <span class="highlighted">right</span>. And for the y-axis: <span class="highlighted">top</span>, <span class="highlighted">center</span>, <span class="highlighted">bottom</span></p>
<pre>
          			<code class="text-indent-0"><span class="attribute">background-position</span>: <span class="value">left top</span>; <span class="comment">/* The top-left corner of the image. */</span></code>
          			<code class="text-indent-0"><span class="attribute">background-position</span>: <span class="value">-10px top</span>; <span class="comment">/* Move the image to the left. */</span></code>
          			<code class="text-indent-0"><span class="attribute">background-position</span>: <span class="value">100% top</span>; <span class="comment">/* Move the image to the right. */</span></code>
          			<code class="text-indent-0"><span class="attribute">background-position</span>: <span class="value">0 -46px</span>; <span class="comment">/* Move the image up. */</span></code>
          		</pre>
<div style="width:15px;height:46px;background:transparent url(http://www.lingihuang.com/viviancrap/wp-content/uploads/flexible_rouned_corners/images/png8.png) left top scroll no-repeat;border:2px solid #999;margin:0 10px 0 0;float:left;"></div>
<div style="width:120px;height:46px;background:transparent url(http://www.lingihuang.com/viviancrap/wp-content/uploads/flexible_rouned_corners/images/png8.png) -15px top scroll no-repeat;border:2px solid #999;margin:0 10px 0 0;float:left;"></div>
<div style="width:15px;height:46px;background:transparent url(http://www.lingihuang.com/viviancrap/wp-content/uploads/flexible_rouned_corners/images/png8.png) 100% top scroll no-repeat;border:2px solid #999;margin:0 10px 0 0;float:left;"></div>
<div style="width:15px;height:31px;background:transparent url(http://www.lingihuang.com/viviancrap/wp-content/uploads/flexible_rouned_corners/images/png8.png) 0 -46px scroll no-repeat;border:2px solid #999;margin:0 10px 0 0;float:left;"></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h4 class="subtitle align-subtitle">Background Attachment</h4>
<p>The <span class="highlighted">background-attachment</span> property determines <span class="highlighted">what happens to an image when the user scrolls the page</span>. The three available properties are <span class="highlighted">scroll</span>, <span class="highlighted">fixed</span>, and <span class="highlighted">inherit</span>.</p>
<p><span class="highlighted">Inherit</span> simply tells the element to follow the background-attachment property of its parent.</p>
<p>When we set <span class="highlighted">background-attachment: scroll;</span>, we are telling the background that when the element scrolls, the background must scroll with it. In simpler terms, the background sticks to the element. This is the default setting for background-attachment.</p>
<p>When we set the background-attachment to <span class="highlighted">fixed</span>, we are telling the browser that when the user scrolls down the page, the background should stay fixed where it is &#8211; i.e. not scroll with the content.</p>
<h4 class="subtitle align-subtitle">Background Repeat</h4>
<p>By default, when you set an image, the image is repeated both horizontally and vertically until the entire elemtn is filled. This may be what you want, but sometimes you want an image to be displayed only once or to be tiled in only one direction. The possible values (and their results) are as follows:</p>
<pre>
          			<code class="text-indent-0"><span class="attribute">background-repeat</span>: <span class="value">repeat</span>; <span class="comment">/* The default value. Will tile the image in both dicrections. */</span></code>
          			<code class="text-indent-0"><span class="attribute">background-repeat</span>: <span class="value">no-repeat</span>; <span class="comment">/* No tiling. The image will be used only once. */</span></code>
          			<code class="text-indent-0"><span class="attribute">background-repeat</span>: <span class="value">repeat-x</span>; <span class="comment">/* Tiles horizontally (i.e. along the x-axis). */</span></code>
          			<code class="text-indent-0"><span class="attribute">background-repeat</span>: <span class="value">repeat-y</span>; <span class="comment">/* Tiles vertically (i.e. along the y-axis). */</span></code>
          			<code class="text-indent-0"><span class="attribute">background-repeat</span>: <span class="value">inherit</span>; <span class="comment">/* Uses the same background-repeat property of the element's parent. */</span></code>
          		</pre>
<p>&nbsp;</p>
<div class="button-row clearfix">
<p class="button-style preview-icon"><a href="http://www.lingihuang.com/viviancrap/wp-content/uploads/flexible_rouned_corners/png8.html" target="_blank">View<span>Demo</span></a></p>
</p></div>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">How to fix PNG-24 transparency for IE6?</div>
</p></div>
</p></div>
</p></div>
</p></div>
<ul class="entry-list">
<li>With CSS</li>
<pre>
          				<code class="text-indent-0"><span class="comment">/* For IE7 and Modern Browsers */</span></code>
          				<code class="text-indent-0"><span class="class">.classname</span> <span class="keyword">{</span></code>
          					<code class="text-indent-1"><span class="attribute">background</span>: <span class="value">transparent url(images/image.png) left top scroll no-repeat;</span></code>
          				<code class="text-indent-0"><span class="keyword">}</span></code>
          				<code class="text-indent-0"><span class="comment">/* For IE6 */</span></code>
          				<code class="text-indent-0"><span class="keyword">*html</span> <span class="class">.classname</span> <span class="keyword">{</span></code>
          					<code class="text-indent-1"><span class="attribute">background-image:</span> <span class="value">none</span>;</code>
          					<code class="text-indent-1"><span class="attribute">filter:</span> <span class="value">progid:DXImageTransform.Microsoft.AlphaImageLoader(src="images/picture.png", sizingMethod="scale")</span>;</code>
          				<code class="text-indent-0"><span class="keyword">}</span></code>
          			</pre>
<li>With Javascript</li>
<pre>
          				<code class="text-indent-0"><span class="comment">/* For IE6 */</span></code>
          				<code class="text-indent-0"><span class="element">element</span>.<span class="keyword">style</span>.<span class="attribute">filter</span> = <span class="string">'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="images/picture.png", sizingMethod="scale")'</span>;</code>
          			</pre>
</ul>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">PNG-24 Pitfalls</div>
</p></div>
</p></div>
</p></div>
</p></div>
<ul class="entry-list">
<li>Background Images Cannot Be Positioned Or Repeated</li>
<p>The AlphaImageLoader does work for background images, but only for the simplest of cases. If your design requires the image to be tiled (<span class="highlighted">background-repeat</span>) or positioned (<span class="highlighted">background-position</span>), you are out of luck. The AlphaImageLoader allows you to set a <span class="highlighted">sizingMethod</span> to either <span class="highlighted">crop</span> the image or to <span class="highlighted">scale</span> it to fit.</p>
<div class="entry-table">
<div class="table-heading-row">
<div class="property-col">sizingMethod Values</div>
<div class="description-col">Description</div>
</p></div>
<div class="table-row">
<div class="property-col" style="height:36px;">crop</div>
<div class="description-col" style="height:36px;">Clips the image to fit the dimensions of the object.</div>
</p></div>
<div class="table-row">
<div class="property-col" style="height:36px;">image</div>
<div class="description-col" style="height:36px;">Default. Enlarge or reduce the border of the object to fit the dimensions of the image.</div>
</p></div>
<div class="table-row">
<div class="property-col" style="height:36px;">scale</div>
<div class="description-col" style="height:36px;">Stretch or shrink the image to fill the borders of the object.</div>
</p></div>
</p></div>
<li>Delayed Loading And Resource Use</li>
<p>The AlphaImageLoader can be quite slow to load, and appears to consume more resources than a standard image when applied. Typically, you&#8217;d need to add thousands of GIFs or JPEGs to a page before you saw any noticeable impact on the browser, but with the AlphaImageLoader filter applied Internet Explorer can become sluggish after just a handful of alpha channel PNGs.</p>
<p>The other noticeable effect is that as more instances of the AlphaImageLoader are applied, the longer it takes to render the PNGs with their transparency. The user sees the PNG load in its original non-supported state (with black or grey areas where transparency should be) before one by one the filter kicks in and makes them properly transparent.</p>
<li>Links Become Unclickable, Forms Unforcusable</li>
<p>There is a bug/weirdness with AlphaImageLoader that sometimes prevents interaction with links and forms when a PNG background image is used. This is sometimes reported as a <span class="highlighted">z-index</span> issue.</p>
<p>Often this can be solved by giving the links or forms elements <span class="highlighted">hasLayout</span> using <span class="highlighted">position: relative;</span> where possible.</p>
</ul>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Related Posts</div>
</p></div>
</p></div>
</p></div>
</p></div>
<ul class="entry-list">
<li><a href="http://www.smashingmagazine.com/2008/04/16/getting-creative-with-transparency-in-web-design/" target="_blank">Getting Creative With Transparency in Web Design</a></li>
<li><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/" target="_blank">Backgrounds In CSS: Everything You Need To Know</a></li>
<li><a href="http://24ways.org/2007/supersleight-transparent-png-in-ie6" target="_blank">Transparent PNGs in Internet Explorer 6</a></li>
<li><a href="http://christopherschmitt.com/2007/10/30/png-transparency-for-internet-explorer-ie6-and-beyond/" target="_blank">PNG Transparency for Internet Explorer (IE6 and Beyond)</a></li>
<li><a href="http://www.digital-web.com/articles/web_standards_creativity_png/" target="_blank">Creative Use of PNG Transparency in Web Design</a></li>
</ul></div>
]]></content:encoded>
			<wfw:commentRss>http://www.lingihuang.com/viviancrap/archives/css-png-transparency/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Float Theory</title>
		<link>http://www.lingihuang.com/viviancrap/archives/css-float-theory/</link>
		<comments>http://www.lingihuang.com/viviancrap/archives/css-float-theory/#comments</comments>
		<pubDate>Sun, 08 Mar 2009 11:50:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.lingihuang.com/viviancrap/?p=11</guid>
		<description><![CDATA[Specifics On Floated Elements A left-floated box will shit to the left until its leftmost margin edge (or border edge if margins are absent) touches either the edge of the containing block, or the edge of another floated box. If the size of the floated box exceeds the available horizontal space, the floated box will [...]]]></description>
			<content:encoded><![CDATA[<div class="entry-content">
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Specifics On Floated Elements</div>
</p></div>
</p></div>
</p></div>
</p></div>
<ul class="entry-list">
<li>A left-floated box will shit to the left until its leftmost margin edge (or border edge if margins are absent) touches either the edge of the containing block, or the edge of another floated box.</li>
<li>If the size of the floated box exceeds the available horizontal space, the floated box will be shifted down.</li>
<li>Non-positioned, non-floated, block-level elements act as if the floated element is not there, since the floated element is out of document flow.</li>
<li>Margins of floated boxes do not collapse with margins of adjacent boxes.</li>
<li>The root element (&lt;html&gt;) cannot be floated.</li>
<li>An inline element that is floated is converted to a block-level element.</li>
</ul>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Clear The Floats</div>
</p></div>
</p></div>
</p></div>
</p></div>
<p>The container div itself has no height and no float, since it only contains floating elements. Therefore the background color and border stubbornly stays at the top of the floating columns.</p>
<p><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/03/clear-the-floats-bug.jpg" alt="Clear Tthe Floats Bug" title="Clear Tthe Floats Bug" width="480" height="263" class="alignnone size-full wp-image-292" /></p>
<h4 class="subtitle align-subtitle">Soultion One: Float The Container<br />
<h4>
<pre>
					<code class="text-indent-0"><span class="element">&lt;div&gt;</span></code>
						<code class="text-indent-1"><span class="element">&lt;div</span> <span class="class">style</span>=<span class="string">"float:left;width:30%;"</span><span class="element">&gt;</span><span class="element">&lt;p&gt;</span>Some content<span class="element">&lt;/p&gt;</span><span class="element">&lt;/div&gt;</span></code>
						<code class="text-indent-1"><span class="element">&lt;p&gt;</span>Text not inside the float<span class="element">&lt;/p&gt;</span></code>
						<code class="text-indent-1"><span class="element">&lt;div</span> <span class="class">style</span>=<span class="string">"clear:both;"</span><span class="element">&gt;</span><span class="element">&lt;/div&gt;</span></code>
					<code class="text-indent-0"><span class="element">&lt;/div&gt;</span></code>
				</pre>
<h4 class="subtitle align-subtitle">Soultion Two: Add Extra Markup<br />
<h4>
<pre>
					<code class="text-indent-0"><span class="element">&lt;div&gt;</span></code>
						<code class="text-indent-1"><span class="element">&lt;div</span> <span class="class">style</span>=<span class="string">"float:left;width:30%;"</span><span class="element">&gt;</span><span class="element">&lt;p&gt;</span>Some content<span class="element">&lt;/p&gt;</span><span class="element">&lt;/div&gt;</span></code>
						<code class="text-indent-1"><span class="element">&lt;p&gt;</span>Text not inside the float<span class="element">&lt;/p&gt;</span></code>
						<code class="text-indent-1"><span class="element">&lt;div</span> <span class="class">class</span>=<span class="string">"clearfix"</span><span class="element">&gt;</span><span class="element">&lt;/div&gt;</span></code>
					<code class="text-indent-0"><span class="element">&lt;/div&gt;</span></code>
				</pre>
<pre>
					<code class="text-indent-0"><span class="class">.clearfix</span> <span class="keyword">{</span></code>
						<code class="text-indent-1"><span class="attribute">clear</span>: <span class="value">both</span>;</code>
					<code class="text-indent-0"><span class="keyword">}</span></code>
				</pre>
<p>You could also do this with by means of a <span class="highlighted">&lt;br /&gt;</span> tag with an inline style. In any case, you will have the desired result: the parent container will expand to enclose all of its children. But this method is not recommended since it adds nonsemantic code to your markup.</p>
<h4 class="subtitle align-subtitle">Soultion Three: The :after Pseudo-Element<br />
<h4>
<p>The CSS class <span class="highlighted">clearfix</span> is applied to any container that has floating children and does not expand to enclose them.</p>
<pre>
					<code class="text-indent-0"><span class="class">.clearfix</span><span class="keyword">:after</span> <span class="keyword">{</span></code>
						<code class="text-indent-1"><span class="attribute">content</span>: <span class="value">"."</span>;</code>
						<code class="text-indent-1"><span class="attribute">display</span>: <span class="value">block</span>;</code>
						<code class="text-indent-1"><span class="attribute">height</span>: <span class="value">0</span>;</code>
						<code class="text-indent-1"><span class="attribute">clear</span>: <span class="value">both</span>;</code>
						<code class="text-indent-1"><span class="attribute">visibility</span>: <span class="value">hidden</span>;</code>
					<code class="text-indent-0"><span class="keyword">}</span></code>
				</pre>
<p>But this method does not work in Internet Explorer up to version 7, so an IE-only style needs to be set with one of the following rules:</p>
<pre>
					<code class="text-indent-0"><span class="class">.clearfix</span> <span class="keyword">{</span></code>
						<code class="text-indent-1"><span class="attribute">display</span>: <span class="value">inline-block</span>;</code>
					<code class="text-indent-0"><span class="keyword">}</span></code>
					<code class="text-indent-0"><span class="class">.clearfix</span> <span class="keyword">{</span></code>
						<code class="text-indent-1"><span class="attribute">zoom</span>: <span class="value">1</span>;</code>
					<code class="text-indent-0"><span class="keyword">}</span></code>
				</pre>
<p>Depending on the type of issue you are dealing with, one of the above two solutions will resolve the issue in Internet Explorer. It should be noted that the <span class="highlighted">zoom</span> property is a non-standard Microsoft proprietary property, and will case your CSS to become invalid.</p>
<h4 class="subtitle align-subtitle">Soultion Four: The Overflow Property<br />
<h4>
<p>By far the best, and easiest solution to reslove the collapsing parent issue is to add <span class="highlighted">overflow: hidden</span> or <span class="highlighted">overflow: auto</span> to the parent element. However, this does not work in IE6. But, in many cases, the parent container will have a set <span class="highlighted">width</span>, which fixes the issue in IE6. If the parent container does not have a width, you can add an IE6-only style with the following code:</p>
<pre>
					<code class="text-indent-0"><span class="comment">This fix is for IE6 only</code>
					<code class="text-indent-0"><span class="keyword">*html</span> <span class="class">.clearfix</span> <span class="keyword">{</span></code>
						<code class="text-indent-1"><span class="attribute">height</span>: <span class="value">1%</span>;</code>
						<code class="text-indent-1"><span class="attribute">overflow</span>: <span class="value">visible</span>;</code>
					<code class="text-indent-0"><span class="keyword">}</span></code>
				</pre>
<p>In IE6, the <span class="highlighted">height</span> property is incorrectly treated as <span class="highlighted">min-height</span>, so this forces the container to enclose its children. The <span class="highlighted">overflow</span> property is then set back to <span class="highlighted">visible</span>, to ensure the content is not hidden or scrolled.</p>
<p>The only drawback to using the <span class="highlighted">overflow</span> method (in any browser) is the possibility that the containing element will have scrollbars or hide content. If there are any elements with <span class="highlighted">negative margins</span> or <span class="highlighted">absolute positioning</span> inside the parent, the will be obscured if they go beyond the parent&#8217;s borders, so this method should be used carefully. It should also be noted that if the containing element has to have a specified <span class="highlighted">height</span> or <span class="highlighted">min-height</span>, then you would definitely not be able to use the <span class="highlighted">overflow</span> method.</p>
<p>          		<iframe width="400" scrolling="auto" height="330" frameborder="0" marginheight="0" marginwidth="0" src="http://www.lingihuang.com/viviancrap/wp-content/uploads/css_float_theory/clear_the_floats.html"></iframe></p>
<div class="button-row clearfix">
<p class="button-style preview-icon"><a href="http://www.lingihuang.com/viviancrap/wp-content/uploads/css_float_theory/clear_the_floats.html" target="_blank">View<span>Demo</span></a></p>
</p></div>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Related Posts</div>
</p></div>
</p></div>
</p></div>
</p></div>
<ul class="entry-list">
<li><a href="http://www.smashingmagazine.com/2007/05/01/css-float-theory-things-you-should-know/" target="_blank">CSS Float Theory Things You Should Know</a></li>
<li><a href="http://www.smashingmagazine.com/2009/10/19/the-mystery-of-css-float-property/" target="_blank">The Mystery Of CSS Float Property</a></li>
<li><a href="http://css-tricks.com/all-about-floats/" target="_blank">All About Floats</a></li>
<li><a href="http://www.positioniseverything.net/easyclearing.html" target="_blank">How To Clear Floats Without Structural Markup</a></li>
<li><a href="http://www.positioniseverything.net/explorer/floatIndent.html" target="_blank">Floats, Margins and IE</a></li>
</ul></div>
]]></content:encoded>
			<wfw:commentRss>http://www.lingihuang.com/viviancrap/archives/css-float-theory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Hacks</title>
		<link>http://www.lingihuang.com/viviancrap/archives/css-hacks/</link>
		<comments>http://www.lingihuang.com/viviancrap/archives/css-hacks/#comments</comments>
		<pubDate>Sat, 07 Mar 2009 13:52:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.lingihuang.com/viviancrap/?p=3</guid>
		<description><![CDATA[Conditional Comments Syntax &#60;!--[if condition]&#62; HTML &#60;![endif]--&#62; Condition &#60;!-- Any Version of IE (typically 5, 5.5, 6, or 7) --&#62; &#60;!--[if IE]&#62; HTML &#60;![endif]--&#62; &#60;!-- Versions Less Than Version --&#62; &#60;!--[if lt IE version]&#62; HTML &#60;![endif]--&#62; &#60;!-- Versions Less Than or Equal To Version --&#62; &#60;!--[if lte IE version]&#62; HTML &#60;![endif]--&#62; &#60;!-- Only Version --&#62; [...]]]></description>
			<content:encoded><![CDATA[<div class="entry-content">
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Conditional Comments</div>
</p></div>
</p></div>
</p></div>
</p></div>
<ul class="entry-list">
<li>Syntax</li>
<pre>
          				<code class="text-indent-0"><span class="element">&lt;!--[if condition]&gt;</span> HTML <span class="element">&lt;![endif]--&gt;</span></code>
          			</pre>
<li>Condition</li>
<pre>
          				<code class="text-indent-0"><span class="comment">&lt;!-- Any Version of IE (typically 5, 5.5, 6, or 7) --&gt;</span></code>
          				<code class="text-indent-0"><span class="element">&lt;!--[if <span class="keyword">IE</span>]&gt;</span> HTML <span class="element">&lt;![endif]--&gt;</span></code>
          			</pre>
<pre>
          				<code class="text-indent-0"><span class="comment">&lt;!-- Versions Less Than Version --&gt;</span></code>
          				<code class="text-indent-0"><span class="element">&lt;!--[if <span class="keyword">lt IE version</span>]&gt;</span> HTML <span class="element">&lt;![endif]--&gt;</span></code>
          			</pre>
<pre>
          				<code class="text-indent-0"><span class="comment">&lt;!-- Versions Less Than or Equal To Version --&gt;</span></code>
          				<code class="text-indent-0"><span class="element">&lt;!--[if <span class="keyword">lte IE version</span>]&gt;</span> HTML <span class="element">&lt;![endif]--&gt;</span></code>
          			</pre>
<pre>
          				<code class="text-indent-0"><span class="comment">&lt;!-- Only Version --&gt;</span></code>
          				<code class="text-indent-0"><span class="element">&lt;!--[if <span class="keyword">IE version</span>]&gt;</span> HTML <span class="element">&lt;![endif]--&gt;</span></code>
          			</pre>
<pre>
          				<code class="text-indent-0"><span class="comment">&lt;!-- Versions Greater Than or Equal To Version --&gt;</span></code>
          				<code class="text-indent-0"><span class="element">&lt;!--[if <span class="keyword">gte IE version</span>]&gt;</span> HTML <span class="element">&lt;![endif]--&gt;</span></code>
          			</pre>
<pre>
          				<code class="text-indent-0"><span class="comment">&lt;!-- Versions Greater Than Version --&gt;</span></code>
          				<code class="text-indent-0"><span class="element">&lt;!--[if <span class="keyword">gt IE version</span>]&gt;</span> HTML <span class="element">&lt;![endif]--&gt;</span></code>
          			</pre>
</ul>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Easy Selectors</div>
</p></div>
</p></div>
</p></div>
</p></div>
<ul class="entry-list">
<li>IE6 and below</li>
<pre>
          				<code class="text-indent-0"><span class="keyword">*html</span> <span class="class">.hackname</span> <span class="keyword">{</span> <span class="attribute">property</span>: <span class="value">value</span>; <span class="keyword">}</span></code>
          			</pre>
<li>IE7 and below</li>
<pre>
          				<code class="text-indent-0"><span class="keyword">*:first-child+html</span> <span class="class">.hackname</span> <span class="keyword">{</span> <span class="attribute">property</span>: <span class="value">value</span>; <span class="keyword">}</span></code>
          			</pre>
<pre>
          				<code class="text-indent-0"><span class="keyword">*html</span> <span class="class">.hackname</span> <span class="keyword">{</span> <span class="attribute">property</span>: <span class="value">value</span>; <span class="keyword">}</span></code>
          			</pre>
<li>IE7 only</li>
<pre>
          				<code class="text-indent-0"><span class="keyword">*:first-child+html</span> <span class="class">.hackname</span> <span class="keyword">{</span> <span class="attribute">property</span>: <span class="value">value</span>; <span class="keyword">}</span></code>
          			</pre>
<li>IE7, Firefox, Safari, and Opera</li>
<pre>
          				<code class="text-indent-0"><span class="keyword">html>body</span> <span class="class">.hackname</span> <span class="keyword">{</span> <span class="attribute">property</span>: <span class="value">value</span>; <span class="keyword">}</span></code>
          			</pre>
<li>IE8, Firefox, Safari, and Opera (Everything but IE6 and IE7)</li>
<pre>
          				<code class="text-indent-0"><span class="keyword">html>/**/body</span> <span class="class">.hackname</span> <span class="keyword">{</span> <span class="attribute">property</span>: <span class="value">value</span>; <span class="keyword">}</span></code>
          			</pre>
<li>Firefox 2 only</li>
<pre>
          				<code class="text-indent-0"><span class="class">.hackname</span><span class="keyword">, x:-moz-any-link</span> <span class="keyword">{</span> <span class="attribute">property</span>: <span class="value">value</span>; <span class="keyword">}</span></code>
          			</pre>
<li>Firefox 3.0 and newer</li>
<pre>
          				<code class="text-indent-0"><span class="class">.hackname</span><span class="keyword">, x:-moz-any-link, x-default</span> <span class="keyword">{</span> <span class="attribute">property</span>: <span class="value">value</span>; <span class="keyword">}</span></code>
          			</pre>
<li>Safari only</li>
<pre>
          				<code class="text-indent-0"><span class="class">.hackname</span> <span class="keyword">empty</span> <span class="keyword">{</span> <span class="attribute">property</span>: <span class="value">value</span> <span class="keyword">!important</span>; <span class="keyword">}</span></code>
          			</pre>
<li>Safari 2 &#8211; 3.1</li>
<pre>
          				<code class="text-indent-0"><span class="keyword">html[xmlns*=""]:root</span> <span class="class">.hackname</span> <span class="keyword">{</span> <span class="attribute">property</span>: <span class="value">value</span>; <span class="keyword">}</span></code>
          			</pre>
<li>Safari 2 &#8211; 3</li>
<pre>
          				<code class="text-indent-0"><span class="keyword">html[xmlns*=""] body:last-child</span> <span class="class">.hackname</span> <span class="keyword">{</span> <span class="attribute">property</span>: <span class="value">value</span>; <span class="keyword">}</span></code>
          			</pre>
<li>Opera 9.27 and below, Safari 2</li>
<pre>
          				<code class="text-indent-0"><span class="keyword">html:first-child</span> <span class="class">.hackname</span> <span class="keyword">{</span> <span class="attribute">property</span>: <span class="value">value</span>; <span class="keyword">}</span></code>
          			</pre>
<li>Safari 2 &#8211; 3.1, and Opera 9.25</li>
<pre>
          				<code class="text-indent-0"><span class="keyword">*|html[xmlns*=""]</span> <span class="class">.hackname</span> <span class="keyword">{</span> <span class="attribute">property</span>: <span class="value">value</span>; <span class="keyword">}</span></code>
          			</pre>
<li>Firefox 3.5+, Safari 3+, Chrome 1+, and Opera 9+</li>
<pre>
          				<code class="text-indent-0"><span class="keyword">body:first-of-type</span> <span class="class">.hackname</span> <span class="keyword">{</span> <span class="attribute">property</span>: <span class="value">value</span>; <span class="keyword">}</span></code>
          			</pre>
<li>Safari 3+, and Chrome 1+</li>
<pre>
          				<code class="text-indent-0"><span class="keyword">@media screen and (-webkit-min-device-pixel-ratio:0)</span> <span class="keyword">{</span></code>
          					<code class="text-indent-1"><span class="class">.hackname</span> <span class="keyword">{</span> <span class="attribute">property</span>: <span class="value">value</span>; <span class="keyword">}</span></code>
          				<code class="text-indent-0"><span class="keyword">}</span></code>
          			</pre>
<li>iPhone/Mobile Webkit</li>
<pre>
          				<code class="text-indent-0"><span class="keyword">@media screen and (max-device-width: 480px)</span> <span class="keyword">{</span></code>
          					<code class="text-indent-1"><span class="class">.hackname</span> <span class="keyword">{</span> <span class="attribute">property</span>: <span class="value">value</span>; <span class="keyword">}</span></code>
          				<code class="text-indent-0"><span class="keyword">}</span></code>
          			</pre>
<li>Everything but IE6 &#8211; 8</li>
<pre>
          				<code class="text-indent-0"><span class="keyword">:root *></span> <span class="class">.hackname</span> <span class="keyword">{</span> <span class="attribute">property</span>: <span class="value">value</span>; <span class="keyword">}</span></code>
          			</pre>
</ul>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Unrecommended Hacks</div>
</p></div>
</p></div>
</p></div>
</p></div>
<ul class="entry-list">
<li>!important</li>
<pre>
          				<code class="text-indent-0"><span class="class">.hackname</span> <span class="keyword">{</span></code>
          					<code class="text-indent-1"><span class="attribute">property</span>: <span class="value">value</span> <span class="keyword">!important</span>; <span class="comment">/* IE7 and Modern Browsers */</span></code>
          					<code class="text-indent-1"><span class="attribute">property</span>: <span class="value">value</span>; <span class="comment">/* IE6 and below */</span></code>
          				<code class="text-indent-0"><span class="keyword">}</span></code>
          			</pre>
<li>_property: value and -property: value</li>
<pre>
          				<code class="text-indent-0"><span class="class">.hackname</span> <span class="keyword">{</span></code>
          					<code class="text-indent-1"><span class="keyword">_</span><span class="attribute">property</span>: <span class="value">value</span>; <span class="comment">/* IE6 and below */</span></code>
          				<code class="text-indent-0"><span class="keyword">}</span></code>
          			</pre>
<li>*property: value</li>
<pre>
          				<code class="text-indent-0"><span class="class">.hackname</span> <span class="keyword">{</span></code>
          					<code class="text-indent-1"><span class="keyword">*</span><span class="attribute">property</span>: <span class="value">value</span>; <span class="comment">/* IE7 and below */</span></code>
          				<code class="text-indent-0"><span class="keyword">}</span></code>
          			</pre>
<li>property/*\**/: value\9</li>
<pre>
          				<code class="text-indent-0"><span class="class">.hackname</span> <span class="keyword">{</span></code>
          					<code class="text-indent-1"><span class="attribute">property</span><span class="keyword">/*\**/</span>: <span class="value">value</span><span class="keyword">\9</span>; <span class="comment">/* IE7 and IE8 */</span></code>
          				<code class="text-indent-0"><span class="keyword">}</span></code>
          			</pre>
<li>property: value\9</li>
<pre>
          				<code class="text-indent-0"><span class="class">.hackname</span> <span class="keyword">{</span></code>
          					<code class="text-indent-1"><span class="attribute">property</span>: <span class="value">value</span><span class="keyword">\9</span>; <span class="comment">/* IE6, IE7, and IE8 */</span></code>
          				<code class="text-indent-0"><span class="keyword">}</span></code>
          			</pre>
<li>Everything but IE6</li>
<pre>
          				<code class="text-indent-0"><span class="class">.hackname</span> <span class="keyword">{</span> <span class="attribute">property</span><span class="keyword">/**/</span>: <span class="value">value</span>; <span class="keyword">}</span></code>
          			</pre>
</ul>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Related Posts</div>
</p></div>
</p></div>
</p></div>
</p></div>
<ul class="entry-list">
<li><a href="http://www.webdevout.net/css-hacks" target="_blank">CSS Hacks</a></li>
<li><a href="http://paulirish.com/2009/browser-specific-css-hacks/" target="_blank">Browser CSS Hacks</a></li>
<li><a href="http://www.evotech.net/blog/2008/09/css-hack-for-google-chrome-and-safari-31/" target="_blank">CSS Hacks For Google Chrome And Safari 3.1</a></li>
<li><a href="http://centricle.com/ref/css/filters/" target="_blank">Browsers With CSS</a></li>
<li><a href="http://www.evotech.net/blog/2008/09/google-chrome-browser-css-selector-support/" target="_blank">Browser CSS Selector Support</a></li>
</ul></div>
]]></content:encoded>
			<wfw:commentRss>http://www.lingihuang.com/viviancrap/archives/css-hacks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

