<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>CSS Current page</title>
        <link>https://interactivetools.com/forum/forum-posts.php?CSS-Current-page-68974</link>
        <description></description>
        <pubDate>Tue, 12 May 2026 02:22:43 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;CSS-Current-page-68974" rel="self" type="application/rss+xml" />

                <item>
          <title>Re: [ross] CSS Current page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2196370#post2196370</link>
          <description><![CDATA[Hi Ross, <br /><br />Thanks for your patience ! <br /><br />Here my code : <br /><br />I removed useless tags HTML to facilitate the reading. <br /><br />Djulia<br />]]></description>
          <pubDate>Wed, 18 Mar 2009 05:39:53 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2196370#post2196370</guid>
        </item>
                <item>
          <title>Re: [Djulia] CSS Current page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2196345#post2196345</link>
          <description><![CDATA[Hi Djulia <br /><br />I'll be in touch as soon as I can. I'll have to read through your code to get a better idea of what's going on.<br /><br />Thanks for getting me the details though :). That makes this a lot easier to troubleshoot.<br />]]></description>
          <pubDate>Tue, 17 Mar 2009 08:49:16 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2196345#post2196345</guid>
        </item>
                <item>
          <title>Re: [ross] CSS Current page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2196327#post2196327</link>
          <description><![CDATA[Hi Ross, <br /><br /><font size="2">[font &quot;Verdana&quot;]I communicate it to you in private message.<br />Thanks for your comprehension.</span></font> <br /><br /><i>[font &quot;Verdana&quot;]<font size="2">Djulia</font></span></i><br />]]></description>
          <pubDate>Mon, 16 Mar 2009 15:28:00 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2196327#post2196327</guid>
        </item>
                <item>
          <title>Re: [Djulia] CSS Current page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2196317#post2196317</link>
          <description><![CDATA[Hi Djulia<br /><br />Thanks for the follow up. I am still having some trouble following along though. Could you post a link to your site so we can take a closer look at what's happening?<br /><br />Thanks!<br />]]></description>
          <pubDate>Mon, 16 Mar 2009 12:58:34 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2196317#post2196317</guid>
        </item>
                <item>
          <title>Re: [Dave] CSS Current page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2196298#post2196298</link>
          <description><![CDATA[Hi Dave,  <br /><br />In fact, we adapted the code on each page. That thus avoids applying the condition to the same recording (or $num) of section 1 and 2 on the page. <br /><br />Here an example : <br /><br />On page <b>newsDetail_1.php</b>. <br /><br /><u>For the section</u> 1 (<i>tableName1</i>) : <br />&lt;?php foreach ($listingRecords as $record): <br />if ($num == $record['num']) { continue; } ?&gt; <br />&lt;li&gt;&lt;a href=&quot;&lt;?php echo $record['_link'] ?&gt;&quot;&gt;&lt;?php echo $record['title'] ?&gt;&lt;/a&gt;&lt;/li&gt; <br />&lt;?php endforeach; ?&gt; <br /><br /><u>For the section</u> 2 (<i>tableName2</i>) : <br />&lt;?php foreach ($listingtwoRecords as $record): ?&gt; <br />&lt;li&gt;&lt;a href=&quot;&lt;?php echo $record['_link'] ?&gt;&quot;&gt;&lt;?php echo $record['title'] ?&gt;&lt;/a&gt;&lt;/li&gt; <br />&lt;?php endforeach; ?&gt; <br /><br />...and on page <b>newsDetail_2.php</b> <br /><br /><u>For the section</u> 1 (<i>tableName1</i>) : <br />&lt;?php foreach ($listingRecords as $record): <br />&lt;li&gt;&lt;a href=&quot;&lt;?php echo $record['_link'] ?&gt;&quot;&gt;&lt;?php echo $record['title'] ?&gt;&lt;/a&gt;&lt;/li&gt; <br />&lt;?php endforeach; ?&gt; <br /><br /><u>For the section</u> 2 (<i>tableName2</i>) : <br />&lt;?php foreach ($listingtwoRecords as $record): ?&gt; <br />if ($num == $record['num']) { continue; } ?&gt; <br />&lt;li&gt;&lt;a href=&quot;&lt;?php echo $record['_link'] ?&gt;&quot;&gt;&lt;?php echo $record['title'] ?&gt;&lt;/a&gt;&lt;/li&gt; <br />&lt;?php endforeach; ?&gt; <br /><br />Djulia<br />]]></description>
          <pubDate>Sat, 14 Mar 2009 11:19:24 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2196298#post2196298</guid>
        </item>
                <item>
          <title>Re: [Djulia] CSS Current page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2196260#post2196260</link>
          <description><![CDATA[Hi Djulia,<br /><br />I'm not sure I follow.  Can you provide a sample url that shows the page you're working on?<br /><br />Thanks!<br />]]></description>
          <pubDate>Thu, 12 Mar 2009 14:55:11 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2196260#post2196260</guid>
        </item>
                <item>
          <title>Re: [Dave] CSS Current page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2196251#post2196251</link>
          <description><![CDATA[<font size="2">Hi Dave, <br /><br />You think that there is a solution with the problem mentioned above ? <br /><br />I forgot to add that this condition is used in a include (includes/nav.php) to optimize the use. <br /><br />Thanks for your assistance. <br /><br />Djulia</font><br />]]></description>
          <pubDate>Thu, 12 Mar 2009 04:59:20 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2196251#post2196251</guid>
        </item>
                <item>
          <title>Re: [Perchpole] CSS Current page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2196250#post2196250</link>
          <description><![CDATA[<font size="2">Thanks Perchpole for your suggestion. [:)] <br /><br />In fact, I wanted to remove the link for the active page. <br />What complicates a little the use : <br /><br />&lt;?php foreach ($secondaryRecords as $record): ?&gt; <br />&lt;?php if ($num == $record['num']): ?&gt; <br />Page (ID 1) <br />&lt;?php else: ?&gt; <br />&lt;a href=&quot;...&quot;&gt;Page (ID 2)&lt;/a&gt; <br />&lt;a href=&quot;...&quot;&gt;Page (ID 3)&lt;/a&gt; <br />... <br />&lt;?php endif; ?&gt; <br />&lt;?php endforeach; ?&gt; <br /><br />The problem now, it is with the use of several sections on the same page. <br />If there is a recording of another section with the same value (ID) the condition is also applied. <br /> <code> <b>MY MENU</b> <br />Section 1  <br /> <br />&lt;?php foreach ($seconeRecords as $record): ?&gt;    <br />  &lt;?php if ($num == $record['num']): ?&gt;    <br /> Page (ID 1)    <br />  &lt;?php else: ?&gt;     <br /> &lt;a href=&quot;...&quot;&gt;Page (ID 2)&lt;/a&gt;    <br /> &lt;a href=&quot;...&quot;&gt;Page (ID 3)&lt;/a&gt;    <br /> ...    <br />  &lt;?php endif; ?&gt;    <br />&lt;?php endforeach; ?&gt;     <br /> <br />Section 2     <br /> <br />&lt;?php foreach ($sectwoRecords as $record): ?&gt;    <br />  &lt;?php if ($num == $record['num']): ?&gt;    <br /> Page (ID 1)    <br />  &lt;?php else: ?&gt;     <br /> &lt;a href=&quot;...&quot;&gt;Page (ID 2)&lt;/a&gt;    <br /> &lt;a href=&quot;...&quot;&gt;Page (ID 3)&lt;/a&gt;    <br /> ...    <br />  &lt;?php endif; ?&gt;    <br />&lt;?php endforeach; ?&gt; </code><br />I think that it is necessary to add a condition (perhaps on _filename (?) ). <br /><br />Djulia</font><br />]]></description>
          <pubDate>Thu, 12 Mar 2009 04:07:43 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2196250#post2196250</guid>
        </item>
                <item>
          <title>Re: [Dave] CSS Current page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2196246#post2196246</link>
          <description><![CDATA[You can also create a similar effect using raw CSS. The trick is to assign a different css class to the &lt;body&gt; tag of each page - and also to each link of your navigation menu. Then all you need to do is create a style which only kicks-in if the &lt;body&gt; class and the corresponding link class appear on the same page.<br /><br />It's delightfully simple. <br /><br />:0)<br /><br />Perchpole<br />]]></description>
          <pubDate>Wed, 11 Mar 2009 19:20:39 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2196246#post2196246</guid>
        </item>
                <item>
          <title>Re: [Djulia] CSS Current page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2196236#post2196236</link>
          <description><![CDATA[Glad to hear you got it working!  Let us know if you need anything else. :)<br />]]></description>
          <pubDate>Wed, 11 Mar 2009 14:12:47 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2196236#post2196236</guid>
        </item>
                <item>
          <title>Re: [Djulia] CSS Current page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2196232#post2196232</link>
          <description><![CDATA[<font size="2">Oops ! <br /><br />I found the origin of my problem. <br /><br />The condition was not correctly positioned. [crazy] <br /><br />&lt;?php foreach ($secondaryRecords as $record): ?&gt;&lt;a href=&quot;&lt;?php echo $record['_link'] ?&gt;&quot;&gt;&lt;?php if ($num == $record['num']): ?&gt;1&lt;?php endif; ?&gt;&lt;/a&gt; - &lt;?php print_r($record['num']); ?&gt;&lt;br /&gt;&lt;?php endforeach; ?&gt; <br /><br />Djulia</font><br />]]></description>
          <pubDate>Wed, 11 Mar 2009 13:54:18 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2196232#post2196232</guid>
        </item>
                <item>
          <title>Re: [Dave] CSS Current page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2196231#post2196231</link>
          <description><![CDATA[<font size="2">Hi Dave, <br /><br />I have a problem which I am not able to solve with <font size="2">the </font>[font &quot;Times New Roman&quot;]<font size="3">$num </font></span></font><font size="2">condition.</font>[font &quot;Times New Roman&quot;] <br /><br />&lt;?php if ($num == $record['num']): ?&gt;greenbuttons&lt;?php endif; ?&gt;  <br /><br /></span><font size="2">The value of $record['num']):  is ever modified. <br />It always preserves the value of the first recording in the table.</font> <br /><br /><font size="2">But, my approach is perhaps not the good one... <br /></font><font size="2"><font size="2"><font size="2">I want to obtain the entries of the table to build a menu and to identify the recording to emphasize it with a style.</font></font> <br /><br />You have an idea ? <br /><br />Thanks, <br /><br />Djulia</font><br />]]></description>
          <pubDate>Wed, 11 Mar 2009 13:32:50 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2196231#post2196231</guid>
        </item>
                <item>
          <title>Re: [Dave] CSS Current page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2192151#post2192151</link>
          <description><![CDATA[Thought this might help others. This is what I do:<br />1) Set up a class named &quot;.current&quot; with the colours you want for the active link.<br />2) Use this code in the link:<br />&lt;a href=&quot;page.php?category=something&quot; &lt;?php if ($category == &quot;something&quot;) { echo &quot;class=\&quot;current\&quot;&quot;;} ?&gt; &gt;link&lt;/a&gt;<br /><br />Peter<br />]]></description>
          <pubDate>Wed, 25 Jun 2008 15:04:20 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2192151#post2192151</guid>
        </item>
                <item>
          <title>Re: [Dave] CSS Current page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2192115#post2192115</link>
          <description><![CDATA[I've responded by email but here's how I did.  It's a little hard because this site is a bit more complicated with it's structure but here they are:<br /><br />You can see the green highlighting on the secondary menu for this page:<br />http://www.straloch.com/newsite/secondary.php?8&amp;theCategory=Straloch+Estate<br /><br />I edited secondarynav.php, added this code to get the current record number:<br />  $num = getNumberFromEndOfUrl();<br /><br />And this code to display the class in the foreach loop<br />&lt;?php if ($num == $record['num']): ?&gt;greenbuttons&lt;?php endif; ?&gt;<br /><br />For headernav.php I added this code:<br />&lt;?php if (@$_GET['theCategory'] == $pagesRecord['title']): ?&gt;greenbuttons&lt;?php endif; ?&gt;<br /><br />Hope that helps!<br />]]></description>
          <pubDate>Mon, 23 Jun 2008 18:21:38 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2192115#post2192115</guid>
        </item>
                <item>
          <title>Re: [chassa2556] CSS Current page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2192102#post2192102</link>
          <description><![CDATA[Thanks, It looks like it might be in secondarynav.php.  Do you want to just send me FTP to dave@interactivetools.com and I can update it for you?  (Email, don't post FTP details in forum).  That way I can easily get to any other files I need.  I'll post back what I changed here.<br /><br />Let me know if that works for you.<br />]]></description>
          <pubDate>Mon, 23 Jun 2008 14:54:19 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2192102#post2192102</guid>
        </item>
                <item>
          <title>Re: [Dave] CSS Current page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2192094#post2192094</link>
          <description><![CDATA[have included attachment for you to look at. thanks<br />]]></description>
          <pubDate>Mon, 23 Jun 2008 12:41:14 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2192094#post2192094</guid>
        </item>
                <item>
          <title>Re: [chassa2556] CSS Current page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2192093#post2192093</link>
          <description><![CDATA[Ok, and the category name is always in the url as theCategory=... is that right?  Can you past the few lines of code that displays the category name?  Or attach indexpages.php to this post so I can see it?<br />]]></description>
          <pubDate>Mon, 23 Jun 2008 12:26:45 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2192093#post2192093</guid>
        </item>
                <item>
          <title>Re: [Dave] CSS Current page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2192092#post2192092</link>
          <description><![CDATA[yes I mean that the currently selected page shows in green. So people have an indication where they are...Sorry I wasn't very clear!<br />]]></description>
          <pubDate>Mon, 23 Jun 2008 12:24:00 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2192092#post2192092</guid>
        </item>
                <item>
          <title>Re: [chassa2556] CSS Current page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2192089#post2192089</link>
          <description><![CDATA[Do you mean so that the currently selected menu item shows in green?  Or something else?<br />]]></description>
          <pubDate>Mon, 23 Jun 2008 11:44:40 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2192089#post2192089</guid>
        </item>
                <item>
          <title>Re: [chassa2556] CSS Current page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2192085#post2192085</link>
          <description><![CDATA[I'm not sure if I understand what you are asking for, but if I do, then this might help. You can apply the concept to any css style sheet or in any editor that you'd like. It doesn't rely on Dreamweaver or on Library items <br /><br />Good luch <br /><br />[url &quot;http://app.expressemailmarketing.com/get.link?linkid=794329&amp;subscriberid=73181730&amp;campaignid=234505&amp;linkurl=http://www.kperspectives.com/Dreamweaver/video_tutorials/dreamweaver/dreamweaver_library_class.zip&quot;]<u><span style="color: #800080">Download the free Dreamweaver Tutorial Video[/#800080]</u>[/url]<br />]]></description>
          <pubDate>Mon, 23 Jun 2008 11:34:11 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2192085#post2192085</guid>
        </item>
                <item>
          <title>CSS Current page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2192082#post2192082</link>
          <description><![CDATA[Is there a way of editing the active page tag in CSS so that the active page is highlighted in green.<br /><br />http://www.straloch.com/newsite/indexpages.php?1&amp;theCategory=The+Dower+House<br /><br />Many thanks in advance<br />]]></description>
          <pubDate>Mon, 23 Jun 2008 04:47:27 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2192082#post2192082</guid>
        </item>
              </channel>
    </rss>
  