<?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"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Generating dynamic stylesheets on the fly using PHP</title> <atom:link href="http://mou.me.uk/2008/08/03/generating-dynamic-stylesheets-on-the-fly-using-php/feed/" rel="self" type="application/rss+xml" /><link>http://mou.me.uk/2008/08/03/generating-dynamic-stylesheets-on-the-fly-using-php/</link> <description>A little piece of the web</description> <lastBuildDate>Sun, 05 Feb 2012 18:59:26 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: mou</title><link>http://mou.me.uk/2008/08/03/generating-dynamic-stylesheets-on-the-fly-using-php/#comment-893</link> <dc:creator>mou</dc:creator> <pubDate>Mon, 01 Sep 2008 09:50:12 +0000</pubDate> <guid
isPermaLink="false">http://mou.me.uk/?p=203#comment-893</guid> <description>JustinI&#039;m a little confused.  Do you fancy sending me the details by email and I&#039;ll take a look?</description> <content:encoded><![CDATA[<p>Justin</p><p>I&#8217;m a little confused.  Do you fancy sending me the details by email and I&#8217;ll take a look?</p> ]]></content:encoded> </item> <item><title>By: Justin Rhee</title><link>http://mou.me.uk/2008/08/03/generating-dynamic-stylesheets-on-the-fly-using-php/#comment-892</link> <dc:creator>Justin Rhee</dc:creator> <pubDate>Thu, 28 Aug 2008 03:58:59 +0000</pubDate> <guid
isPermaLink="false">http://mou.me.uk/?p=203#comment-892</guid> <description>can&#039;t seem to make the php show in comments, but in the last example i tried declaring an if else to choose between upperlevel and upperlevel selected classes if page=whatever. but ends up showing 2 buttons and ignores the if else statemnt. do you know why? or what i can do instead</description> <content:encoded><![CDATA[<p>can&#8217;t seem to make the php show in comments, but in the last example i tried declaring an if else to choose between upperlevel and upperlevel selected classes if page=whatever. but ends up showing 2 buttons and ignores the if else statemnt. do you know why? or what i can do instead</p> ]]></content:encoded> </item> <item><title>By: Justin Rhee</title><link>http://mou.me.uk/2008/08/03/generating-dynamic-stylesheets-on-the-fly-using-php/#comment-891</link> <dc:creator>Justin Rhee</dc:creator> <pubDate>Thu, 28 Aug 2008 03:56:37 +0000</pubDate> <guid
isPermaLink="false">http://mou.me.uk/?p=203#comment-891</guid> <description>Oh, I forgot to mention I also have classes on my links:&lt;a href=&quot;go/who-we-are/&quot; rel=&quot;nofollow&quot;&gt;About Oogie Art&lt;/a&gt;&lt;a href=&quot;go/who-we-are/&quot; rel=&quot;nofollow&quot;&gt;Who We Are&lt;/a&gt;
&lt;a href=&quot;go/why-oogie-art/&quot; rel=&quot;nofollow&quot;&gt;Why Oogie Art?&lt;/a&gt;
&lt;a href=&quot;go/our-results/2008/&quot; rel=&quot;nofollow&quot;&gt;Our Results&lt;/a&gt;
&lt;a href=&quot;go/news/&quot; rel=&quot;nofollow&quot;&gt;Oogie Art News&lt;/a&gt;
&lt;a href=&quot;go/faq/&quot; rel=&quot;nofollow&quot;&gt;FAQ&lt;/a&gt;&lt;a href=&quot;go/portfolio-program/&quot; rel=&quot;nofollow&quot;&gt;Art Portfolio Program&lt;/a&gt;&lt;a href=&quot;go/portfolio-program/high-school/&quot; rel=&quot;nofollow&quot;&gt;High School Program&lt;/a&gt;
&lt;a href=&quot;go/portfolio-program/college-program/&quot; rel=&quot;nofollow&quot;&gt;College Program&lt;/a&gt;So &quot;upperlevel selected&quot; class shifts the image down to -54px, while &quot;upperlevel&quot; class shifts the image down to -27px. You can see the menu in action at www.Oogie-Art.com.With your tutorial what I&#039;ve done is if page=about,
li#nav_about a.upperlevel { background-image: url(&quot;http://www.oogie-art.com/img/nav/about.gif&quot;); width: 135px;margin-right:5px;background-position: 0 -27px;}move the about image down to -27px (selected in blue) however the hover stops working at this point, so I wanted to include in the php declaration 2 points:
1. the above
2. li#nav_about a.upperlevel:hover a.upperlevel {background-position: 0 -54px;}code I have now:
&quot;&quot;
&quot;&quot;
li#nav_about a.upperlevel { background-image: url(&quot;http://www.oogie-art.com/img/nav/about.gif&quot;); width: 135px;margin-right:5px;background-position: 0 -27px;}
li#nav_about a.upperlevel:hover a.upperlevel {background-position: 0 -54px;}
&quot;
li#nav_about a.upperlevel { background-image: url(&quot;http://www.oogie-art.com/img/nav/about.gif&quot;); width: 135px;margin-right:5px;}
&quot;what I&#039;m also thinking about is if instead of declaring the if statement in the css file, I want to try declaring it in my nav file; for example:&quot;
&lt;a href=&quot;#&quot; rel=&quot;nofollow&quot;&gt;Home&lt;/a&gt;&lt;a href=&quot;#&quot; rel=&quot;nofollow&quot;&gt;Home&lt;/a&gt;&lt;a href=&quot;#&quot; rel=&quot;nofollow&quot;&gt;Home&lt;/a&gt;
&lt;a href=&quot;go/who-we-are/&quot; rel=&quot;nofollow&quot;&gt;About Oogie Art&lt;/a&gt;&lt;a href=&quot;go/who-we-are/&quot; rel=&quot;nofollow&quot;&gt;Who We Are&lt;/a&gt;but when I do it this way, I displays 2 Home buttons and doesn&#039;t read the if else, why?</description> <content:encoded><![CDATA[<p>Oh, I forgot to mention I also have classes on my links:</p><p> <a
href="go/who-we-are/" rel="nofollow">About Oogie Art</a></p><p> <a
href="go/who-we-are/" rel="nofollow">Who We Are</a><br
/> <a
href="go/why-oogie-art/" rel="nofollow">Why Oogie Art?</a><br
/> <a
href="go/our-results/2008/" rel="nofollow">Our Results</a><br
/> <a
href="go/news/" rel="nofollow">Oogie Art News</a><br
/> <a
href="go/faq/" rel="nofollow">FAQ</a></p><p> <a
href="go/portfolio-program/" rel="nofollow">Art Portfolio Program</a></p><p> <a
href="go/portfolio-program/high-school/" rel="nofollow">High School Program</a><br
/> <a
href="go/portfolio-program/college-program/" rel="nofollow">College Program</a></p><p>So &#8220;upperlevel selected&#8221; class shifts the image down to -54px, while &#8220;upperlevel&#8221; class shifts the image down to -27px. You can see the menu in action at <a
href="http://www.Oogie-Art.com" rel="nofollow">http://www.Oogie-Art.com</a>.</p><p>With your tutorial what I&#8217;ve done is if page=about,<br
/> li#nav_about a.upperlevel { background-image: url(&#8220;http://www.oogie-art.com/img/nav/about.gif&#8221;); width: 135px;margin-right:5px;background-position: 0 -27px;}</p><p>move the about image down to -27px (selected in blue) however the hover stops working at this point, so I wanted to include in the php declaration 2 points:<br
/> 1. the above<br
/> 2. li#nav_about a.upperlevel:hover a.upperlevel {background-position: 0 -54px;}</p><p>code I have now:<br
/> &#8220;&#8221;<br
/> &#8220;&#8221;<br
/> li#nav_about a.upperlevel { background-image: url(&#8220;http://www.oogie-art.com/img/nav/about.gif&#8221;); width: 135px;margin-right:5px;background-position: 0 -27px;}<br
/> li#nav_about a.upperlevel:hover a.upperlevel {background-position: 0 -54px;}<br
/> &#8221;<br
/> li#nav_about a.upperlevel { background-image: url(&#8220;http://www.oogie-art.com/img/nav/about.gif&#8221;); width: 135px;margin-right:5px;}<br
/> &#8221;</p><p>what I&#8217;m also thinking about is if instead of declaring the if statement in the css file, I want to try declaring it in my nav file; for example:</p><p> &#8221;<br
/> <a
href="#" rel="nofollow">Home</a></p><p> <a
href="#" rel="nofollow">Home</a></p><p> <a
href="#" rel="nofollow">Home</a><br
/> <a
href="go/who-we-are/" rel="nofollow">About Oogie Art</a></p><p> <a
href="go/who-we-are/" rel="nofollow">Who We Are</a></p><p>but when I do it this way, I displays 2 Home buttons and doesn&#8217;t read the if else, why?</p> ]]></content:encoded> </item> <item><title>By: Justin Rhee</title><link>http://mou.me.uk/2008/08/03/generating-dynamic-stylesheets-on-the-fly-using-php/#comment-890</link> <dc:creator>Justin Rhee</dc:creator> <pubDate>Thu, 28 Aug 2008 03:24:39 +0000</pubDate> <guid
isPermaLink="false">http://mou.me.uk/?p=203#comment-890</guid> <description>li#nav_about a.upperlevel { background-image: url(&quot;http://www.oogie-art.com/img/nav/about.gif&quot;); width: 135px;margin-right:5px;background-position: 0 -27px;}
li#nav_about a.upperlevel:hover a.upperlevel {background-position: 0 -54px;}li#nav_about a.upperlevel { background-image: url(&quot;http://www.oogie-art.com/img/nav/about.gif&quot;); width: 135px;margin-right:5px;}I inserted &quot;.&quot; to show you all the code.</description> <content:encoded><![CDATA[<p>li#nav_about a.upperlevel { background-image: url(&#8220;http://www.oogie-art.com/img/nav/about.gif&#8221;); width: 135px;margin-right:5px;background-position: 0 -27px;}<br
/> li#nav_about a.upperlevel:hover a.upperlevel {background-position: 0 -54px;}</p><p>li#nav_about a.upperlevel { background-image: url(&#8220;http://www.oogie-art.com/img/nav/about.gif&#8221;); width: 135px;margin-right:5px;}</p><p>I inserted &#8220;.&#8221; to show you all the code.</p> ]]></content:encoded> </item> <item><title>By: Justin Rhee</title><link>http://mou.me.uk/2008/08/03/generating-dynamic-stylesheets-on-the-fly-using-php/#comment-889</link> <dc:creator>Justin Rhee</dc:creator> <pubDate>Thu, 28 Aug 2008 03:22:42 +0000</pubDate> <guid
isPermaLink="false">http://mou.me.uk/?p=203#comment-889</guid> <description>Wait, I&#039;ve run into a problem: if the page is recognized as &quot;about,&quot; I want an image to move down -27px, while moving down to -54px when hovered upon; right now the hover isn&#039;t working though.Here&#039;s my code:li#nav_about a.upperlevel { background-image: url(&quot;http://www.oogie-art.com/img/nav/about.gif&quot;); width: 135px;
margin-right:5px;
background-position: 0 -27px;}li#nav_about a.upperlevel:hover a.upperlevel {background-position: 0 -54px;}...Is it possible to make both work?</description> <content:encoded><![CDATA[<p>Wait, I&#8217;ve run into a problem: if the page is recognized as &#8220;about,&#8221; I want an image to move down -27px, while moving down to -54px when hovered upon; right now the hover isn&#8217;t working though.</p><p>Here&#8217;s my code:</p><p>li#nav_about a.upperlevel { background-image: url(&#8220;http://www.oogie-art.com/img/nav/about.gif&#8221;); width: 135px;<br
/> margin-right:5px;<br
/> background-position: 0 -27px;}</p><p>li#nav_about a.upperlevel:hover a.upperlevel {background-position: 0 -54px;}</p><p>&#8230;</p><p>Is it possible to make both work?</p> ]]></content:encoded> </item> <item><title>By: Justin Rhee</title><link>http://mou.me.uk/2008/08/03/generating-dynamic-stylesheets-on-the-fly-using-php/#comment-888</link> <dc:creator>Justin Rhee</dc:creator> <pubDate>Thu, 28 Aug 2008 03:06:07 +0000</pubDate> <guid
isPermaLink="false">http://mou.me.uk/?p=203#comment-888</guid> <description>Yo, absolutely amazing technique! I applied it to a menu I&#039;m working on at www.Oogie-Art.com and it works perfectly now; thanks a lot man.</description> <content:encoded><![CDATA[<p>Yo, absolutely amazing technique! I applied it to a menu I&#8217;m working on at <a
href="http://www.Oogie-Art.com" rel="nofollow">http://www.Oogie-Art.com</a> and it works perfectly now; thanks a lot man.</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching using memcached
Object Caching 281/296 objects using apc

Served from: mou.me.uk @ 2012-02-10 05:13:51 -->
