<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Dynamic CSS A.K.A. CSS Variables</title>
	<atom:link href="http://www.silverspider.com/2007/dynamic-css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.silverspider.com/2007/dynamic-css/</link>
	<description>The Web site of Alex S. Jones, community catalyst, user advocate, Web technologist, barbecue acolyte &#38; information junkie</description>
	<pubDate>Sat, 11 Oct 2008 00:22:12 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: gavin</title>
		<link>http://www.silverspider.com/2007/dynamic-css/#comment-38953</link>
		<dc:creator>gavin</dc:creator>
		<pubDate>Mon, 18 Aug 2008 02:41:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.silverspider.com/2007/dynamic-css/#comment-38953</guid>
		<description>... and if you want to get crazy and take all the extra whitespace out of your css, click here:

http://websitetips.com/articles/optimization/css/crunch/</description>
		<content:encoded><![CDATA[<p>&#8230; and if you want to get crazy and take all the extra whitespace out of your css, click here:</p>
<p><a href="http://websitetips.com/articles/optimization/css/crunch/" rel="nofollow">http://websitetips.com/articles/optimization/css/crunch/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gavin</title>
		<link>http://www.silverspider.com/2007/dynamic-css/#comment-38952</link>
		<dc:creator>gavin</dc:creator>
		<pubDate>Mon, 18 Aug 2008 02:34:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.silverspider.com/2007/dynamic-css/#comment-38952</guid>
		<description>thanks.  By the way, you can remove CSS comments by adding this code to the script I posted before:

$file_contents  = preg_replace('!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $file_contents); // removes comments from css</description>
		<content:encoded><![CDATA[<p>thanks.  By the way, you can remove CSS comments by adding this code to the script I posted before:</p>
<p>$file_contents  = preg_replace(&#8217;!/\*[^*]*\*+([^/][^*]*\*+)*/!&#8217;, &#8221;, $file_contents); // removes comments from css</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.silverspider.com/2007/dynamic-css/#comment-38806</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Sat, 16 Aug 2008 13:22:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.silverspider.com/2007/dynamic-css/#comment-38806</guid>
		<description>Great idea Gavin! I didn't want to treat all CSS as PHP, adding needless overhead, but I hadn't thought about a local .htaccess file. 

Very smart, thanks for sharing it!</description>
		<content:encoded><![CDATA[<p>Great idea Gavin! I didn&#8217;t want to treat all CSS as PHP, adding needless overhead, but I hadn&#8217;t thought about a local .htaccess file. </p>
<p>Very smart, thanks for sharing it!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gavin</title>
		<link>http://www.silverspider.com/2007/dynamic-css/#comment-38790</link>
		<dc:creator>gavin</dc:creator>
		<pubDate>Sat, 16 Aug 2008 10:14:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.silverspider.com/2007/dynamic-css/#comment-38790</guid>
		<description>Wonderful article, and your blog looks great.

Am I seeing that you name all your css files with a .php extension?  If you want to keep you .css extension and use php tags in them, try this:

&lt;pre&gt;&lt;code&gt;/css/.htaccess:
RewriteEngine on
RewriteRule \.(.*)$ dynamic_css.php [L]

/css/dynamic_css.php:
if ($file_name = basename($_SERVER['REQUEST_URI'])) {
    header('Content-type: text/css');
    eval('?&#62;'.file_get_contents($file_name));
}   &lt;/code&gt;&lt;/pre&gt;


Of course it means adding 2 new files to your css folder.  But it makes dynamic-css files transparent to the rest of your application.</description>
		<content:encoded><![CDATA[<p>Wonderful article, and your blog looks great.</p>
<p>Am I seeing that you name all your css files with a .php extension?  If you want to keep you .css extension and use php tags in them, try this:</p>
<pre><code>/css/.htaccess:
RewriteEngine on
RewriteRule \.(.*)$ dynamic_css.php [L]

/css/dynamic_css.php:
if ($file_name = basename($_SERVER['REQUEST_URI'])) {
    header('Content-type: text/css');
    eval('?&gt;'.file_get_contents($file_name));
}   </code></pre>
<p>Of course it means adding 2 new files to your css folder.  But it makes dynamic-css files transparent to the rest of your application.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: I. Chna</title>
		<link>http://www.silverspider.com/2007/dynamic-css/#comment-37258</link>
		<dc:creator>I. Chna</dc:creator>
		<pubDate>Sat, 26 Jul 2008 14:09:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.silverspider.com/2007/dynamic-css/#comment-37258</guid>
		<description>ever seen the dancing at the Bohemien Grove with 5 people, prancing around feeding from the joy, in a pentonic style.
'Pentagon', site at last minute re-located to be built on what's called?

If America want's it, mat she'll get it, and love it, like Beauty and the monster.

China in your hans, that army corp you have, the big red 1 , is as big as the Red Army  uno bollox yu must feed your desire for them, then be enslved by their products, like your enslavement by all your chinese products, ALL.

Funny Funny Funny, not fun fun blah blah, funeral.

blowing smoke up the devils ass, funny. bomb bomb</description>
		<content:encoded><![CDATA[<p>ever seen the dancing at the Bohemien Grove with 5 people, prancing around feeding from the joy, in a pentonic style.<br />
&#8216;Pentagon&#8217;, site at last minute re-located to be built on what&#8217;s called?</p>
<p>If America want&#8217;s it, mat she&#8217;ll get it, and love it, like Beauty and the monster.</p>
<p>China in your hans, that army corp you have, the big red 1 , is as big as the Red Army  uno bollox yu must feed your desire for them, then be enslved by their products, like your enslavement by all your chinese products, ALL.</p>
<p>Funny Funny Funny, not fun fun blah blah, funeral.</p>
<p>blowing smoke up the devils ass, funny. bomb bomb</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: I. Chna</title>
		<link>http://www.silverspider.com/2007/dynamic-css/#comment-37256</link>
		<dc:creator>I. Chna</dc:creator>
		<pubDate>Sat, 26 Jul 2008 13:55:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.silverspider.com/2007/dynamic-css/#comment-37256</guid>
		<description>Really, how does Alex Jones from infowars, who gas publically infiltrated the Bohemian Grove, keep on breathing,

could you "?"

maybe I have the correct Alex Jones, and like you say, he's the wrong one?, or on the Goebells agenda.

Please come back with you bollox on the first comment in this box.

thank you for you readings of my English language?, not complicated or sopisticated enough for real communications,
I'll not re-connect. for these writings of this type of known by the few knowledge, sorry y'all</description>
		<content:encoded><![CDATA[<p>Really, how does Alex Jones from infowars, who gas publically infiltrated the Bohemian Grove, keep on breathing,</p>
<p>could you &#8220;?&#8221;</p>
<p>maybe I have the correct Alex Jones, and like you say, he&#8217;s the wrong one?, or on the Goebells agenda.</p>
<p>Please come back with you bollox on the first comment in this box.</p>
<p>thank you for you readings of my English language?, not complicated or sopisticated enough for real communications,<br />
I&#8217;ll not re-connect. for these writings of this type of known by the few knowledge, sorry y&#8217;all</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.silverspider.com/2007/dynamic-css/#comment-37253</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Sat, 26 Jul 2008 13:12:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.silverspider.com/2007/dynamic-css/#comment-37253</guid>
		<description>Howdy I. China. You've found the wrong Alex Jones, try infowars.com - he's likely the one you're talking about.

Cheers</description>
		<content:encoded><![CDATA[<p>Howdy I. China. You&#8217;ve found the wrong Alex Jones, try infowars.com - he&#8217;s likely the one you&#8217;re talking about.</p>
<p>Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: I. Chna</title>
		<link>http://www.silverspider.com/2007/dynamic-css/#comment-37252</link>
		<dc:creator>I. Chna</dc:creator>
		<pubDate>Sat, 26 Jul 2008 13:09:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.silverspider.com/2007/dynamic-css/#comment-37252</guid>
		<description>why does Alex get to keep on breathing - seriously, I'm totally serial.

I've seen all his dvd's, slagging of the Leaders of the US civilisation, very young.
He never talks about CHINA, and their Red Army, their 5000 year old civilisatins. Holding, if interpritated the birth of the illuminati accross Europe and beyond. Sure, Norad, less than 100 years, the great wall of china - thousands of years.

the push to far, your dreams are
China in your hands.

the Chinese tiger is out of the woods, and too many years ago to do anything, they are sending their unwanted babies to the US.

bye, and stop terrorising folks, killing is killing, this show is the media of Japanese torture, dreams vs reality.

bye,
etherability.


PS
you cannot tell people stuff, enlightened or not, like black and white, sure chinese don't hit in either place.
Why, in lush Africa, has the land been turned to sand, something real hot happened, when they returnrd from 'land of the rising sun', how the world looked 5000 years.

turning Japanese, I think I'm turning Japanese, I F'in know so. I'm also bigger than you think so. Born of greed not a living seed.</description>
		<content:encoded><![CDATA[<p>why does Alex get to keep on breathing - seriously, I&#8217;m totally serial.</p>
<p>I&#8217;ve seen all his dvd&#8217;s, slagging of the Leaders of the US civilisation, very young.<br />
He never talks about CHINA, and their Red Army, their 5000 year old civilisatins. Holding, if interpritated the birth of the illuminati accross Europe and beyond. Sure, Norad, less than 100 years, the great wall of china - thousands of years.</p>
<p>the push to far, your dreams are<br />
China in your hands.</p>
<p>the Chinese tiger is out of the woods, and too many years ago to do anything, they are sending their unwanted babies to the US.</p>
<p>bye, and stop terrorising folks, killing is killing, this show is the media of Japanese torture, dreams vs reality.</p>
<p>bye,<br />
etherability.</p>
<p>PS<br />
you cannot tell people stuff, enlightened or not, like black and white, sure chinese don&#8217;t hit in either place.<br />
Why, in lush Africa, has the land been turned to sand, something real hot happened, when they returnrd from &#8216;land of the rising sun&#8217;, how the world looked 5000 years.</p>
<p>turning Japanese, I think I&#8217;m turning Japanese, I F&#8217;in know so. I&#8217;m also bigger than you think so. Born of greed not a living seed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.silverspider.com/2007/dynamic-css/#comment-34871</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Thu, 26 Jun 2008 13:36:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.silverspider.com/2007/dynamic-css/#comment-34871</guid>
		<description>Interesting point wizard, but if I understand you correctly, the server still has to process the variables, and the difference in size between a single stylesheet with everything included versus breaking it up into separate file isn't likely to make a difference. But, by breaking it up into separate stylesheets, you are actually adding overhead as the browser has to pull each separate stylesheet, queuing them up with all of the other files, which could slow down the entire page load. There's a definite bonus to having everything in a single file when looking at network performance and browser rendering.

I've been tinkering with a different angle of late - building everything dynamically and then copying the generated file for use, so the server doesn't have to do any processing except for the single time after I make a change to the dynamic style sheet. I have some more experimenting to do on that though.

I've paid some attention to the @Variables rules, which would be great if they are implemented properly, but sadly it will be a long time before we could reliably use them on sites. Until then conversations like this one are great.</description>
		<content:encoded><![CDATA[<p>Interesting point wizard, but if I understand you correctly, the server still has to process the variables, and the difference in size between a single stylesheet with everything included versus breaking it up into separate file isn&#8217;t likely to make a difference. But, by breaking it up into separate stylesheets, you are actually adding overhead as the browser has to pull each separate stylesheet, queuing them up with all of the other files, which could slow down the entire page load. There&#8217;s a definite bonus to having everything in a single file when looking at network performance and browser rendering.</p>
<p>I&#8217;ve been tinkering with a different angle of late - building everything dynamically and then copying the generated file for use, so the server doesn&#8217;t have to do any processing except for the single time after I make a change to the dynamic style sheet. I have some more experimenting to do on that though.</p>
<p>I&#8217;ve paid some attention to the @Variables rules, which would be great if they are implemented properly, but sadly it will be a long time before we could reliably use them on sites. Until then conversations like this one are great.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wizard20740</title>
		<link>http://www.silverspider.com/2007/dynamic-css/#comment-34824</link>
		<dc:creator>wizard20740</dc:creator>
		<pubDate>Thu, 26 Jun 2008 02:18:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.silverspider.com/2007/dynamic-css/#comment-34824</guid>
		<description>Typically the dynamic part of stylesheets is only a small/miniscule portion of the overall css content. So if we could isolate the dynamic portion inside a single separate file and make it accessible for use across all the remaining static stylesheets (especially in websites which use multiple css), we could avoid unnecessary load on the server.

Not sure whether this is currently possible. Understand though that a proposal to use CSS @Variables at rules, for implementing this, is under consideration.</description>
		<content:encoded><![CDATA[<p>Typically the dynamic part of stylesheets is only a small/miniscule portion of the overall css content. So if we could isolate the dynamic portion inside a single separate file and make it accessible for use across all the remaining static stylesheets (especially in websites which use multiple css), we could avoid unnecessary load on the server.</p>
<p>Not sure whether this is currently possible. Understand though that a proposal to use CSS @Variables at rules, for implementing this, is under consideration.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
