<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1026850" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1026850</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/php-css#comment-1161070</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;&lt;strong&gt;Dragon of Ice wrote:&lt;/strong&gt; I am thinking of conditional formatting, and maybe some stuff where I have to have ten buttons, all the same code other than background color.  I could do some type of for loop.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt; This article might be some use to you:&lt;br /&gt;
 &lt;a href=&quot;http://www.sitepoint.com/article/css-simple-style-switcher&quot; class=&quot;bb-url&quot;&gt;http://www.sitepoint.com/article/css-simple-style-switcher&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Thu, 04 Nov 2004 14:04:24 +0000</pubDate>
 <dc:creator>KeithMcL</dc:creator>
 <guid isPermaLink="false">comment 1161070 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/php-css#comment-1160947</link>
    <description> &lt;p&gt;You could use PHP to generate the buttons with classes assigned as you would normally do with HTML...you would not need to do anything differant with your CSS.&lt;br /&gt;
My site for example the main menu and the footer are generated by the same PHP script....the only problem I have at the moment with it is that it dose not validate because I am using an id tag for the active link and am having a little trouble getting it to work with a class tag....if anyone has any ideas.&lt;/p&gt;
 </description>
     <pubDate>Mon, 01 Nov 2004 01:07:04 +0000</pubDate>
 <dc:creator>syawilim</dc:creator>
 <guid isPermaLink="false">comment 1160947 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/php-css#comment-1160945</link>
    <description> &lt;p&gt;Yeah, it would validate. This is how server-side theme switchers, &quot;currently selected&quot; nav elements and such are done. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;PHP doesn&#039;t know what it&#039;s printing out, as it&#039;s only text as far as it&#039;s concerned. The validator doesn&#039;t know about any PHP or server-side code, as it&#039;s only the output it can see.&lt;/p&gt;
 </description>
     <pubDate>Mon, 01 Nov 2004 00:21:06 +0000</pubDate>
 <dc:creator>Abhishek Reddy</dc:creator>
 <guid isPermaLink="false">comment 1160945 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/php-css#comment-1160937</link>
    <description> &lt;p&gt;Also, do you think it would still validate?&lt;/p&gt;
 </description>
     <pubDate>Sun, 31 Oct 2004 15:44:45 +0000</pubDate>
 <dc:creator>Dragon of Ice</dc:creator>
 <guid isPermaLink="false">comment 1160937 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/php-css#comment-1160933</link>
    <description> &lt;p&gt;I am thinking of conditional formatting, and maybe some stuff where I have to have ten buttons, all the same code other than background color.  I could do some type of for loop.&lt;/p&gt;
 </description>
     <pubDate>Sun, 31 Oct 2004 13:40:04 +0000</pubDate>
 <dc:creator>Dragon of Ice</dc:creator>
 <guid isPermaLink="false">comment 1160933 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/php-css#comment-1160924</link>
    <description> &lt;p&gt;Or you could have PHP print the path to your chosen stylesheet:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;echo \&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;lt;link rel=\\&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;stylesheet&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;\\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot; type=\\&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;css&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;\\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot; href=\\&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot; . &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$path&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; . \&quot;\\&quot; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;/&amp;gt;\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Sun, 31 Oct 2004 08:40:03 +0000</pubDate>
 <dc:creator>Abhishek Reddy</dc:creator>
 <guid isPermaLink="false">comment 1160924 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/php-css#comment-1160917</link>
    <description> &lt;p&gt;I have seen people do the following:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;lt;link rel=&amp;quot;stylesheet&amp;quot; type=&amp;quot;text/css&amp;quot; href=&amp;quot;style.php&amp;quot; /&amp;gt;&lt;/code&gt;&#039;&lt;/p&gt;
&lt;p&gt;I haven&#039;t tried this out for myself though. Another way of doing this would be to have the CSS in the  tags.&lt;/p&gt;
 </description>
     <pubDate>Sun, 31 Oct 2004 06:30:55 +0000</pubDate>
 <dc:creator>Renegade</dc:creator>
 <guid isPermaLink="false">comment 1160917 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/php-css#comment-1160916</link>
    <description> &lt;p&gt;They&#039;re independent technologies. Why would you want to use PHP in CSS?&lt;/p&gt;
&lt;p&gt;The best I can think of is for some kind of conditional formatting, for which you may use PHP with CSS just as you would use PHP with HTML. PHP effectively doesn&#039;t know the difference between HTML and CSS -- it&#039;s all just text.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/confused.png&quot; title=&quot;Confused&quot; alt=&quot;Confused&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Sun, 31 Oct 2004 02:54:36 +0000</pubDate>
 <dc:creator>Abhishek Reddy</dc:creator>
 <guid isPermaLink="false">comment 1160916 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
