Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Dec 2005
    Location
    SWFL
    Posts
    469
    Plugin Contributions
    0

    Default Re: Quick css question navCatTabs

    This might not apply in your case, but in case it does...

    I once spent an HOUR fighting a link set-up to get it to change color, it wouldn't...

    Turns out because I'd already clicked on and "visited" the link, it always showed as the "visited" color. I only figured it out when I went and looked at it on another computer -- worked once, then it didn't.

    Totally dump your browser cache and see if that helps. Might not, but it was my d'oh! problem. *LOL*

    HTH,
    Lesli in SW Florida ~ writer, teacher, and dodging hurricanes!

  2. #2

    Default Re: Quick css question navCatTabs

    Thanks for the suggestion, but I understand that visited links will stay in their assigned color as long as you are on they are in the cache which is why I can't do what I need with the a:visited tag. I want for visitors to be able to see visually which menu they are currently in based on a visual difference. Like this

    http://www.bananarepublic.com/browse...on.do?cid=5002

    when you click on a category at the top menu it gets a 1px border as long as you are in it. It disappears when you leave the section and is placed on another section based on where you are. On html pages I have made in the past this was done with a simple a:active tag as far as I remember.

    I am pretty sure there is a way to name the css to accomplish this like #current or #category-subs-selected, I'm just not sure what it is exactly. In the meantime I put in the dropdown menu.

    If anyone knows the correct naming for this that would be very helpful! I can't seem to find it with the developers toolbar.

  3. #3
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Quick css question navCatTabs

    There are tags for the current category or sub that can be used without depending on the pseudo-classes. In tpl_categories.php:
    PHP Code:
     if ($box_categories_array[$i]['current']) {
            if (
    $box_categories_array[$i]['has_sub_cat']) {
              
    $content .= '<span class="category-subs-parent">' $cat_name_display '</span>';
            } else {
              
    $content .= '<span class="category-subs-selected">' $cat_name_display '</span>';
            } 
    (snippet from Cat Dressing, so not identical to stock - but the classes are)

    The Classic template uses this functionality, if you want to see how it operates.

  4. #4

    Default Re: Quick css question navCatTabs

    Ahh! That's it. span.category-subs.selected Funny thing is I use it on another site of mine *duh moment*.

    Thanks so much!

 

 

Similar Threads

  1. quick CSS question
    By SethF in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 11 Oct 2011, 09:00 AM
  2. CSS setting: navCatTabs?
    By sports guy in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 2 Sep 2010, 06:21 PM
  3. navCatTabs question - How do I remove this bar?
    By mtimber in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 25 Aug 2008, 05:05 PM
  4. Just a quick question about a part of my CSS
    By ymbd in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 15 Aug 2008, 08:02 PM
  5. CSS Flyout Quick Question
    By zberke in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 24 Feb 2007, 01:12 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg