Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I am not seeing a style for visited? Only active and hover.</p> <p>add</p> <pre><code> #gallery a:visited{} </code></pre> <p>style and see if that helps.</p> <p>But I wonder if that is what you are actually asking? You may want to link to be displayed differently from the other links if its the last link that the user clicked. To do that you may have to use some javascript.</p> <p>For example, if you use jQuery you can do something like this:</p> <pre><code>$("#gallery a").click(function(){ $("#gallery a").removeClass("ActiveClass"); $(this).addClass("ActiveClass"); }); </code></pre> <p>where ActiveClass is a CSS class for styling the link appropriately.</p> <hr> <p>EDIT based on comment below.</p> <p>Let us assume that you have three links that look the same (call that lookA). You click on one and it looks different from the other two (lookB) but the other two still looks the same (lookA). You then click on a second link. The second link is not lookB and the other two links are lookA. Does this sound like what you want? At least that is how I interpret your question.</p> <p>Hence, create two classes in CSS:</p> <pre><code> .lookA {/*Style for lookA*/} .lookB {/*Style for lookB*/} </code></pre> <p>of course you can use more meaningful names.</p> <p>Then you can add a class to each of the links that you need to use in this scenario like this:</p> <pre><code> &lt;div id="tabs"&gt; &lt;div id="overview"&gt; &lt;a class="imagelink lookA" id="overviewtab" target="tabsa" href="toframe.html"&gt;Overviews&lt;/a&gt; &lt;/div&gt; &lt;div id="gallery"&gt; &lt;a class="imagelink lookA" target="tabsa" href="tawagpinoygallery.html"&gt;Gallery&lt;/a&gt; &lt;/div&gt; &lt;div id="reviews"&gt; &lt;a class="imagelink lookA" target="tabsa" href="trframe.html"&gt;Reviews&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>So that each link can be refered to by its class, that is, imagelink. Also each link has a default lookA.</p> <p>Now in jQuery (I know you did not specify jQuery but using it is 100 times simpler than plain Javascript).:</p> <pre><code> $(document).ready(function(){ $(".imagelink").click(function(){ $(".imagelink").removeClass("lookB"); $(this).addClass("lookB"); return true; }); }); </code></pre> <p>So on click on the link, it removes lookB from any other link and applies it only to the clicked link.</p> <p>Hope this helps a bit.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload