<?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>~ overflow ~ &#187; CSS</title>
	<atom:link href="http://www.overflow.biz/blog/lang/en-us/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.overflow.biz/blog</link>
	<description>Coding and Internet Randomness</description>
	<lastBuildDate>Sun, 08 Jan 2012 23:34:17 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en-us</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CSS Packer Reloaded</title>
		<link>http://www.overflow.biz/blog/lang/en-us/2010/06/21/css-packer-reloaded?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=css-packer-reloaded</link>
		<comments>http://www.overflow.biz/blog/lang/en-us/2010/06/21/css-packer-reloaded#comments</comments>
		<pubDate>Mon, 21 Jun 2010 22:11:45 +0000</pubDate>
		<dc:creator>z3n</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tips & Hints]]></category>
		<category><![CDATA[automation]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[packer]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.overflow.biz/blog/?p=449</guid>
		<description><![CDATA[Sometime ago i posted a simple css packer which basically wipes out the whitespaces,  new lines and so on. The javascript packer was also included. Although none of those were 100% my creations i&#8217;ve improved the way it works by adding a couple of things:
- Caching based on timestamp on files (aka automatic cache expiry [...]]]></description>
			<content:encoded><![CDATA[<p>Sometime ago i <a href="http://www.overflow.biz/blog/lang/pt-br/2009/04/03/js-and-css-packer-in-php" target="_blank">posted</a> a simple css packer which basically wipes out the whitespaces,  new lines and so on. The javascript packer was also included. Although none of those were 100% my creations i&#8217;ve improved the way it works by adding a couple of things:</p>
<p>- Caching based on timestamp on files (aka automatic cache expiry on update)</p>
<p>- Packing multiple files into a single one (ex. if you have 100s of jquery extensions you don&#8217;t need to pack them individually, packing everything into a single file is faster and smaller)</p>
<p>- Flexible layout for packing IE specific files</p>
<p><strong>Source:</strong></p>
<pre class="brush: php;">
function css_specifics($fn) {
	global $_GET;
	if (isset($_GET['q'])) {
		return str_replace(&#34;.css&#34;,&#34;.&#34;.trim(str_replace(array(&#34;..&#34;,&#34;/&#34;),&#34;&#34;,$_GET['q'])).&#34;.css&#34;,$fn);
	} else {
		return $fn;
	}
}

base_defines(array(
	&#34;css_packed&#34; =&#62; _is_sadm ? &#34;packed-adm.css&#34; : &#34;packed.css&#34;,												// css worked file output
	&#34;css_include_path&#34; =&#62; &#34;css/&#34;,																											// css base include path
	&#34;css_cache_path&#34; =&#62; &#34;css/cache/&#34;,																									// css cache path
	&#34;css_compression&#34; =&#62; -1,																													// css compression method, -1 = disabled
	&#34;css_copyright&#34; =&#62; &#34;/* (c) z3n - www.overflow.biz - rodrigo.orph@gmail.com */\n\n&#34;, 	// css copyright notice, will appear on packed verisons
	&#34;css_debug&#34; =&#62; 0,
	&#34;css_gzip&#34; =&#62; 1
));

$css=&#34;&#34;;
$_use_cache=0;
$css_packed=css_specifics(css_packed);

$l=(file_exists(css_cache_path.$css_packed)) ? filemtime(css_cache_path.$css_packed) : 0;

if (isset($css_includes) &#38;&#38; (!empty($css_includes))) {
	if ($l &#62; 0) { // check last mod first
		$_use_cache=1;
		if (css_debug)
			echo &#34;collected includes: &#34;.var_export($css_includes,true).&#34;\n&#34;;
		foreach ($css_includes as $v) {
			$fn=_fn_fix($v{0} == &#34;/&#34; &#124;&#124; strpos($v,&#34;:\\&#34;) !== false &#124;&#124; $v{0} == &#34;\\&#34; ? $v : css_include_path.$v);
			if (css_debug)
				echo &#34;checking lastmod for: &#34;.$v.&#34;\n&#34;;
			if (foo((substr($v,0,5) == &#34;http:&#34;) ?
					getlastmod($fn)
				:
					filemtime($fn)
			) &#62; $l) {
				$_use_cache=0;
				break;
			}
		}
	}

	if (!$_use_cache) { // re/pack
		if (css_debug)
			echo &#34;building new cache\n&#34;;
		// load all js into one
		foreach ($css_includes as $v)
			$css.=substr($v,0,5) == &#34;http:&#34; ?
					file_get_contents($v).&#34;\n&#34;
				:
					_fs($v{0} == &#34;/&#34; &#124;&#124; strpos($v,&#34;:\\&#34;) !== false &#124;&#124; $v{0} == &#34;\\&#34; ? $v : css_include_path.$v).&#34;\n&#34;
			;

		// @Packager.RemoveLine -&#62; nothing

		if (css_debug)
			echo &#34;replacing..\n&#34;;
		// perform basic replaces
		$css=str_replace(array(
				&#34;##SITE_FULL_URI##&#34;
			),array(
				site_full_uri
		),$css);

		// compress
		switch (css_compression) {
			case &#34;0&#34;: // css tidy - http://csstidy.sourceforge.net/
				require_once(&#34;classes/csstidy/class.csstidy.php&#34;);

				$x=new csstidy();
				$x-&#62;set_cfg('preserve_css',true);
				$x-&#62;set_cfg('remove_last_;',true);
				$x-&#62;set_cfg('merge_selectors',1);
				$x-&#62;set_cfg('optimise_shorthands',1);
				$x-&#62;set_cfg('silent',true);
				$x-&#62;set_cfg('compress_colors',true);
				$x-&#62;set_cfg('sort_selectors',false);
				$x-&#62;set_cfg('sort_properties',false);
				$x-&#62;set_cfg('discard_invalid_properties',false);
				$x-&#62;set_cfg('timestamp',false);
				$x-&#62;load_template(&#34;highest_compression&#34;);

				$x-&#62;parse(strip_comments($css));
				$css=$x-&#62;print-&#62;plain();

				break;
			case &#34;1&#34;: // minify - http://www.lateralcode.com/css-minifier/
				$css = preg_replace( '#\s+#', ' ', $css );
				$css = preg_replace( '#/\*.*?\*/#s', '', $css );
				$css = str_replace( '; ', ';', $css );
				$css = str_replace( ': ', ':', $css );
				$css = str_replace( ' {', '{', $css );
				$css = str_replace( '{ ', '{', $css );
				$css = str_replace( ', ', ',', $css );
				$css = str_replace( '} ', '}', $css );
				$css = str_replace( ';}', '}', $css );
				break;
			default: // no compression/invalid
				// nothing!
				break;
		}

		$css=css_copyright.$css; // add copyright notice

		if (css_debug)
			echo &#34;writing cache..\n&#34;;

		_fw(css_cache_path.$css_packed,$css,&#34;w&#34;); // save cache
	} else { // use cache
		if (css_debug)
			echo &#34;loading from cache\n&#34;;
		$css=_fs(css_cache_path.$css_packed);
	}

	if (css_debug)
		echo &#34;output\n - - - \n&#34;.$css;

	_opt_headers(gmdate(_dt_lm,filemtime(css_cache_path.$css_packed)).&#34; GMT&#34;); // check/send 304

	header('Content-Type: text/css');

	if (css_gzip) // compress
		ob_start(&#34;ob_gzhandler&#34;);

	print $css; // final output
}

die;
</pre>
<p><strong>Usage:</strong></p>
<p>Configure files to be added by:</p>
<pre class="brush: php;">
$css_includes=array(
    &#34;file1.css&#34;,
    &#34;file2.css&#34;,
    &#34;fileN.css&#34;,
    &#34;http://www.remote.com/style.css&#34;
);
</pre>
<p>Do the link by:</p>
<pre class="brush: php;">
&#60;link rel=&#34;stylesheet&#34; href=&#34;/lib/css.php&#34; type=&#34;text/css&#34;&#62;
&#60;!--[if IE]&#62;&#60;link rel=&#34;stylesheet&#34; href=&#34;/lib/css.php?q=ie&#34; type=&#34;text/css&#34;&#62;&#60;![endif]--&#62;
</pre>
<p>Assuming you have the source into /lib/css.php and, on this case, you have an exception for all IEs.</p>
<p><strong>Notes:</strong></p>
<p>css_include_path = source of css (uncompressed, commented)<br />
css_cache_path = path to save the compressed css<br />
css_compression = method of compression , -1 no compression , 0 = css tidy, 1 = minify<br />
css_debug = enables step by step debug<br />
css_gzip = forces php to output as gzip</p>
<p><strong>Required:</strong></p>
<p><a href="http://csstidy.sourceforge.net/" target='_blank'>CSS Tidy</a></p>
<p>You may also need some functions of my framework, i will post them when i compile a decent common file.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.overflow.biz/blog/lang/en-us/2010/06/21/css-packer-reloaded/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A different way to change css opacity</title>
		<link>http://www.overflow.biz/blog/lang/en-us/2009/11/10/a-different-way-to-change-css-opacity?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=a-different-way-to-change-css-opacity</link>
		<comments>http://www.overflow.biz/blog/lang/en-us/2009/11/10/a-different-way-to-change-css-opacity#comments</comments>
		<pubDate>Tue, 10 Nov 2009 21:46:32 +0000</pubDate>
		<dc:creator>z3n</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tips & Hints]]></category>
		<category><![CDATA[alpha]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[filter:alpha]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[opacity]]></category>

		<guid isPermaLink="false">http://www.overflow.biz/blog/?p=272</guid>
		<description><![CDATA[I was looking around to fix bugs on IE opacity settings and found out this article, although the rgba don&#8217;t work on ie6 &#60;= , it seemed pretty good for me, not only because it&#8217;s less code, but it&#8217;s smarter; and it&#8217;s also an old thing!
On this sample i will have an some_css class with [...]]]></description>
			<content:encoded><![CDATA[<p>I was looking around to fix bugs on IE opacity settings and found out <a href="http://www.domedia.org/oveklykken/css-transparency.php" target="_blank">this</a> article, although the <em>rgba</em> don&#8217;t work on ie6 &#60;= , it seemed pretty good for me, not only because it&#8217;s less code, but it&#8217;s smarter; and it&#8217;s also an old thing!</p>
<p>On this sample i will have an <em>some_css </em>class with 50% transparency, on the usual method you need to do lots of statements to be compatible with all major browsers, not only that but this makes things harder when you have elements inside the parent element that shouldn&#8217;t be transparent.</p>
<p><strong>Problem:</strong></p>
<p>.some_css {</p>
<p><code>filter:alpha(opacity=<em>50</em>);<br />
opacity:<em>0.5</em>;<br />
-moz-opacity:<em>0.5</em>;<br />
position:relative;</code></p>
<p>}</p>
<p><strong>Solution:</strong></p>
<p>.some_css {</p>
<p>background-color:rgba(0,0,0,<strong>0.5</strong>);</p>
<p>}</p>
<p><strong>Source:</strong></p>
<p><a href="http://www.domedia.org/oveklykken/css-transparency.php" target="_blank">Ove Klykken</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.overflow.biz/blog/lang/en-us/2009/11/10/a-different-way-to-change-css-opacity/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dark Skin for Firebug</title>
		<link>http://www.overflow.biz/blog/lang/en-us/2009/10/28/dark-skin-for-firebug?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=dark-skin-for-firebug</link>
		<comments>http://www.overflow.biz/blog/lang/en-us/2009/10/28/dark-skin-for-firebug#comments</comments>
		<pubDate>Wed, 28 Oct 2009 15:06:52 +0000</pubDate>
		<dc:creator>z3n</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[dark skin]]></category>
		<category><![CDATA[firebug]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[skin]]></category>

		<guid isPermaLink="false">http://www.overflow.biz/blog/?p=266</guid>
		<description><![CDATA[Problem:
Firebug skin is white, it&#8217;s annoying and it hurts my eyes.
Solution:
I edited myself a bunch of css files and build up a less annoying version, although there&#8217;s a lots of borders that still too light, it&#8217;s a real relief for me already.
You can download it here.
You should replace the files on the classic skin, they [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong></p>
<p>Firebug skin is white, it&#8217;s annoying and it hurts my eyes.</p>
<p><strong>Solution:</strong></p>
<p>I edited myself a bunch of css files and build up a less annoying version, although there&#8217;s a lots of borders that still too light, it&#8217;s a real relief for me already.</p>
<p>You can download it <a title="Firebug dark skin" href="http://www.overflow.biz/blog/~scripts/firebug-dark-skin.rar" target="_blank">here</a>.</p>
<p>You should replace the files on the classic skin, they are located inside the document settings/your user/data something/mozilla/extensions/firebug/skin/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.overflow.biz/blog/lang/en-us/2009/10/28/dark-skin-for-firebug/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Little Firefox Glitch</title>
		<link>http://www.overflow.biz/blog/lang/en-us/2009/05/30/little-firefox-glitch?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=little-firefox-glitch</link>
		<comments>http://www.overflow.biz/blog/lang/en-us/2009/05/30/little-firefox-glitch#comments</comments>
		<pubDate>Sat, 30 May 2009 13:46:36 +0000</pubDate>
		<dc:creator>z3n</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tips & Hints]]></category>
		<category><![CDATA[background]]></category>
		<category><![CDATA[background-attachment]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[fixed background]]></category>

		<guid isPermaLink="false">http://overflow.biz/blog/?p=123</guid>
		<description><![CDATA[Problem:
Having a fixed background may be a problem on firefox if you just declare it like this:
body { background:url(file.ext) fixed; }
Solution:
body { background:url(file.ext) fixed #color; }





]]></description>
			<content:encoded><![CDATA[<p><span lang="en-us"><strong>Problem:</strong></span></p>
<p><span lang="en-us">Having a fixed background may be a problem on firefox if you just declare it like this:</span></p>
<p><span lang="en-us"><em>body { background:url(file.ext) fixed; }</em></span></p>
<p><span lang="en-us"><strong>Solution:</strong></span></p>
<p><span lang="en-us"><em>body { background:url(file.ext) fixed <strong>#color</strong>; }</em></span></p>





]]></content:encoded>
			<wfw:commentRss>http://www.overflow.biz/blog/lang/en-us/2009/05/30/little-firefox-glitch/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Alternate method for background images</title>
		<link>http://www.overflow.biz/blog/lang/en-us/2009/05/20/alternate-method-for-background-images?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=alternate-method-for-background-images</link>
		<comments>http://www.overflow.biz/blog/lang/en-us/2009/05/20/alternate-method-for-background-images#comments</comments>
		<pubDate>Wed, 20 May 2009 20:38:17 +0000</pubDate>
		<dc:creator>z3n</dc:creator>
				<category><![CDATA[Tips & Hints]]></category>
		<category><![CDATA[alternate]]></category>
		<category><![CDATA[background]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[picmap]]></category>
		<category><![CDATA[site optmization]]></category>

		<guid isPermaLink="false">http://overflow.biz/blog/?p=108</guid>
		<description><![CDATA[Problem:
When you need to build up a page with lots of little images , like the borders, gradients, different backgrounds , slideshows etc. All into the same page.
You probably will have lots of images on the same page, specially if you cut them to save much bytes as you can, however, you might fall into [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong></p>
<p>When you need to build up a page with lots of little images , like the borders, gradients, different backgrounds , slideshows etc. All into the same page.</p>
<p>You probably will have lots of images on the same page, specially if you cut them to save much bytes as you can, however, you might fall into a different issue:</p>
<p>Too many images will make the load slow as well, since browser will open only 2 connections at same time with the server (every connection takes a while to actually start downloading something since it needs to go thuru all the hops and reach the server etc etc), meaning that all that nice optmization you did worth nothing since you got lots of images.</p>
<p>No good!</p>
<p><strong>Solution:</strong></p>
<p>I&#8217;ve seen this only one time at <em><a href="http://www.hesido.com/web.php?page=customscrollbar" target="_blank">fleXcroll</a></em> script, and many times on old games textures.</p>
<p>The technique used on both is the same, although might not ring a bell for you it&#8217;s pretty simple to use, a little complicated to add on css, but will do the work.</p>
<div class="wp-caption alignleft" style="width: 394px"><img title="Pic Map example" src="http://www.overflow.biz/blog/picmap.jpg" alt="picmap.jpg example" width="384" height="516" /><p class="wp-caption-text">picmap png file zoomed</p></div>
<p>This is a zoomed version of a picmap (I don&#8217;t really know a formal name for this that&#8217;s how i will call it) png I did, you can see it got transparency and stuff.</p>
<p>The different colors and green lines are just to highlight the different images i merged here, they will be used all in background at the css, meaning that i can have the position easily set.</p>
<p>As you can see on the bottom there&#8217;s 2 huge blocks, this is for the horizontal repeat, since i can&#8217;t define a fixed area on the image for the browser to pick as pattern for <em>repeat-x</em> (for example) I need to do this. You may think that it would be a waste, since usually, you can do a 1px width image for this type of thing, however, when you merge pictures toguether you&#8217;re not only saving the connection delay time, but for some image formats you have a header on the file or a color index that, when merged, became smaller than the separated files.</p>
<p>In the original <em>2,65kb</em> png, I managed to merge 17 different pictures, that separated were <em>4,79kb</em>, and yet you can see that there still some space left to add more things if i wanted to.</p>
<p>The css for the top circle (which is actually 4 corners) would look like this:</p>
<blockquote><p>.bB,.bC,.bD,.bE{height:9px;width:9px;font-size:1px;}</p>
<p>.bB{background:url(img/b.png) 0px 0px;}<br />
.bC{background:url(img/b.png) -9px 0px;}<br />
.bD{background:url(img/b.png) -9px -9px;}<br />
.bE{background:url(img/b.png) 0px -9px;}</p></blockquote>
<p>Note that all the positions are negative.</p>
<p>Depending on the usage of your picmap you might want to have <em>repeat-y</em>&#8217;s for example, so you need to rethink the layout in order to take maximum of it.</p>
<p>For me, i only have <em>repeat-x</em> backgrounds, so I broke it in different formats, <strong>gif</strong>, <strong>png</strong> and <strong>jpg</strong>, doing that I could take the best of each.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.overflow.biz/blog/lang/en-us/2009/05/20/alternate-method-for-background-images/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>JS and CSS Packer in PHP</title>
		<link>http://www.overflow.biz/blog/lang/en-us/2009/04/03/js-and-css-packer-in-php?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=js-and-css-packer-in-php</link>
		<comments>http://www.overflow.biz/blog/lang/en-us/2009/04/03/js-and-css-packer-in-php#comments</comments>
		<pubDate>Fri, 03 Apr 2009 16:02:46 +0000</pubDate>
		<dc:creator>z3n</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[packer]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://overflow.biz/blog/?p=43</guid>
		<description><![CDATA[Problem:
No decent css/js packers in php
Solution:
Source Here
This CLI based script will compress the input files detecting their formats and placing on a defined folder, easying the automation of multiple files compression.
have fun!
]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong></p>
<p>No decent css/js packers in php</p>
<p><strong>Solution:</strong></p>
<p><a href="http://www.overflow.biz/blog/~scripts/z_packer.rar" target="_blank"><strong>Source Here</strong></a></p>
<p>This CLI based script will compress the input files detecting their formats and placing on a defined folder, easying the automation of multiple files compression.</p>
<p>have fun!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.overflow.biz/blog/lang/en-us/2009/04/03/js-and-css-packer-in-php/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>IE PNG Workaround Trick</title>
		<link>http://www.overflow.biz/blog/lang/en-us/2009/01/13/ie-png-workaround-trick?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=ie-png-workaround-trick</link>
		<comments>http://www.overflow.biz/blog/lang/en-us/2009/01/13/ie-png-workaround-trick#comments</comments>
		<pubDate>Tue, 13 Jan 2009 22:53:33 +0000</pubDate>
		<dc:creator>z3n</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tips & Hints]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[div]]></category>
		<category><![CDATA[png]]></category>

		<guid isPermaLink="false">http://overflow.biz/blog/?p=21</guid>
		<description><![CDATA[We all know ie sucks a lot, but when it comes to transparent png it&#8217;s another level of suckness.
I&#8217;m designing a site with those little shadow borders, like 4px in height, the usual ie6&#60; fix:
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='image.png', sizingMethod='scale');
apparently work, but if you look closely, for small height divs it don&#8217;t work right.
it assumes that the minimum height [...]]]></description>
			<content:encoded><![CDATA[<p>We all know ie sucks a lot, but when it comes to transparent png it&#8217;s another level of suckness.</p>
<p>I&#8217;m designing a site with those little shadow borders, like 4px in height, the usual ie6&#60; fix:</p>
<p><code>filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='image.png', sizingMethod='scale');</code></p>
<p>apparently work, but if you look closely, for small height divs it don&#8217;t work right.</p>
<p>it assumes that the minimum height is the same height of the font on that div, so how stupid is this?</p>
<p>a work around would be:</p>
<p><code>.your_happy_class { font-size:1px; }</code></p>
<p>an interesting fact is that IE don&#8217;t support the line-height feature right, so if you were thinking in use this, you thought wrong! hahahah</p>
]]></content:encoded>
			<wfw:commentRss>http://www.overflow.biz/blog/lang/en-us/2009/01/13/ie-png-workaround-trick/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>An old CSS Trick</title>
		<link>http://www.overflow.biz/blog/lang/en-us/2008/05/30/an-old-css-trick?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=an-old-css-trick</link>
		<comments>http://www.overflow.biz/blog/lang/en-us/2008/05/30/an-old-css-trick#comments</comments>
		<pubDate>Fri, 30 May 2008 23:18:18 +0000</pubDate>
		<dc:creator>z3n</dc:creator>
				<category><![CDATA[Tips & Hints]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Hack]]></category>
		<category><![CDATA[IE]]></category>

		<guid isPermaLink="false">http://overflow.biz/blog/?p=6</guid>
		<description><![CDATA[It&#8217;s been a long time i use this trick but i never got time to share it, so here it goes,
there are many different ways to have an specific css command to be interpreted by a IE or FF, but they are complicated some are obscure , other requires you to do a separated CSS [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been a long time i use this trick but i never got time to share it, so here it goes,</p>
<p>there are many different ways to have an specific css command to be interpreted by a IE or FF, but they are complicated some are obscure , other requires you to do a separated CSS file etc etc</p>
<p>here&#8217;s my trick:<br />
<code><br />
.someclass {<br />
width:250px; /* this is for FF */<br />
//width:265px; /* this only works on IE */<br />
}<br />
</code><br />
so on FF it will ignore the commented line while IE will override the previous value with the one on the commented line; For some reason this works all IE versions i was able to test, somehow IE really loves to read the //&#8217;s , regular /* */ comments are ignored by both browsers.</p>
<p>that&#8217;s all.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.overflow.biz/blog/lang/en-us/2008/05/30/an-old-css-trick/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

