<?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>TechTrouts.com &#187; css</title>
	<atom:link href="http://techtrouts.com/topics/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://techtrouts.com</link>
	<description>Doin' the dev dance o/</description>
	<lastBuildDate>Thu, 23 Jul 2009 10:42:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Mootools: smooth font resize onmouseover (mouseenter) &#8220;bump&#8221;</title>
		<link>http://techtrouts.com/mootools-smooth-font-resize-onmouseover-mouseenter-bump/</link>
		<comments>http://techtrouts.com/mootools-smooth-font-resize-onmouseover-mouseenter-bump/#comments</comments>
		<pubDate>Tue, 24 Jun 2008 15:36:04 +0000</pubDate>
		<dc:creator>Carlos Ouro</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[how-tos]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[mootools]]></category>

		<guid isPermaLink="false">http://techtrouts.com/mootools-smooth-font-resize-onmouseover-mouseenter-bump/</guid>
		<description><![CDATA[Hello, this is the smooth font resize for css class &#8220;.bump&#8221; effect. Just put class=&#8221;bump&#8221; on the items you want and use the following javascript somewhere on your page. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 [...]]]></description>
			<content:encoded><![CDATA[<p>Hello,</p>
<p>this is the smooth font resize for css class &#8220;.bump&#8221; effect.<br />
Just put <em>class=&#8221;bump&#8221;</em> on the items you want and use the following javascript somewhere on your page.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">window.<span style="color: #660066;">addEvent</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'domready'</span><span style="color: #339933;">,</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> 
&nbsp;
	<span style="color: #006600; font-style: italic;">//scaling values</span>
	<span style="color: #003366; font-weight: bold;">var</span> scale_px<span style="color: #339933;">=</span><span style="color: #CC0000;">6</span><span style="color: #339933;">;</span>
	<span style="color: #003366; font-weight: bold;">var</span> scale_em<span style="color: #339933;">=</span><span style="color: #CC0000;">0.3</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #003366; font-weight: bold;">var</span> bumps<span style="color: #339933;">=</span>$$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.bump'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	bumps.<span style="color: #660066;">each</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>bump<span style="color: #339933;">,</span> i<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		<span style="color: #003366; font-weight: bold;">var</span> init_size<span style="color: #339933;">=</span>bump.<span style="color: #660066;">getStyle</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'font-size'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #003366; font-weight: bold;">var</span> units<span style="color: #339933;">=</span>init_size.<span style="color: #660066;">match</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/em/</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">!=</span><span style="color: #003366; font-weight: bold;">null</span> <span style="color: #339933;">?</span> <span style="color: #3366CC;">'em'</span> <span style="color: #339933;">:</span> init_size.<span style="color: #660066;">match</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/px/</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">!=</span><span style="color: #003366; font-weight: bold;">null</span> <span style="color: #339933;">?</span> <span style="color: #3366CC;">'px'</span> <span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span>
		<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>units<span style="color: #339933;">===</span><span style="color: #003366; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span> <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #003366; font-weight: bold;">var</span> size_up<span style="color: #339933;">=</span><span style="color: #009900;">&#40;</span>init_size.<span style="color: #660066;">toFloat</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span><span style="color: #009900;">&#40;</span>units<span style="color: #339933;">==</span><span style="color: #3366CC;">'em'</span> <span style="color: #339933;">?</span> scale_em <span style="color: #339933;">:</span> scale_px<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span>units<span style="color: #339933;">;</span>
		<span style="color: #003366; font-weight: bold;">var</span> fx<span style="color: #339933;">=</span><span style="color: #003366; font-weight: bold;">new</span> Fx.<span style="color: #660066;">Morph</span><span style="color: #009900;">&#40;</span>bump<span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span>duration<span style="color: #339933;">:</span><span style="color: #CC0000;">90</span><span style="color: #339933;">,</span> wait<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">,</span> transition<span style="color: #339933;">:</span>Fx.<span style="color: #660066;">Transitions</span>.<span style="color: #000066;">Back</span>.<span style="color: #660066;">easeOut</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		bump.<span style="color: #660066;">addEvent</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;mouseenter&quot;</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>event<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			fx.<span style="color: #660066;">start</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
				<span style="color: #3366CC;">'font-size'</span><span style="color: #339933;">:</span>size_up
			<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		bump.<span style="color: #660066;">addEvent</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;mouseleave&quot;</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>event<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			fx.<span style="color: #660066;">start</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
				<span style="color: #3366CC;">'font-size'</span><span style="color: #339933;">:</span>init_size
			<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Note: In order for this to work on IE7 you need to have some font-size defined in your css for every &#8220;.bump&#8221; on your page. Otherwise font-size will return &#8220;100%&#8221;, and it get&#8217;s impossible to know how to resize &#8211; i&#8217;ve tried it &#8211; damn IE :/</p>
<p>You can check it working <a href="http://9tree.net/" title="9tree - Natural Revolution for the Web" target="_blank">here</a>, on the links under &#8220;We Provide:&#8221;.<br />
Tanks :)</p>
]]></content:encoded>
			<wfw:commentRss>http://techtrouts.com/mootools-smooth-font-resize-onmouseover-mouseenter-bump/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Is there a limit to the css z-index property?</title>
		<link>http://techtrouts.com/is-there-a-limit-to-the-css-z-index-property/</link>
		<comments>http://techtrouts.com/is-there-a-limit-to-the-css-z-index-property/#comments</comments>
		<pubDate>Wed, 23 Apr 2008 13:45:11 +0000</pubDate>
		<dc:creator>Carlos Ouro</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[development]]></category>

		<guid isPermaLink="false">http://techtrouts.com/is-there-a-limit-to-the-css-z-index-property/</guid>
		<description><![CDATA[Theorically the z-index property should be unlimited, or at least within an int type range, depending on OS and browser. However, to avoid browser bugs you should limit your z-index values to +/- 32767 . It should be enough to handle just about anything.]]></description>
			<content:encoded><![CDATA[<p>Theorically the z-index property should be unlimited, or at least within an int type range, depending on OS and browser.<br />
However, to avoid browser bugs you should limit your z-index values to +/- 32767 .</p>
<p>It should be enough to handle just about anything.</p>
]]></content:encoded>
			<wfw:commentRss>http://techtrouts.com/is-there-a-limit-to-the-css-z-index-property/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
