Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Nov 2008
    Posts
    71
    Plugin Contributions
    0

    Default tweaking category sub styles

    I'm working on my navigation (using the categories sidebox), and want to switch the way the SPAN.category-subs-parent classes are marked up.

    To avoid being incredibly confusing, take a look at how my navigation is currently displayed HERE.

    You'll see each sub category with a dashed line underneath. The code to accomplish this is done like this
    Code:
    A.category-subs, A.category-subs:visited {
    	border-bottom:2px dashed #B15148;
    	border-color:#B15148;
    	color:#4D4D4D;
    	display:block;
    	font-family:Georgia,"Times New Roman",Times,serif;
    	font-size:18px;
    	font-weight:bold;
    	letter-spacing:3px;
    	line-height:1;
    	padding-bottom:13px;
    	text-decoration:none;
    	}
    What I want, is for the selected subcategories to lose the underline, that way the hierarchy tree won't be interrupted by the dashed line.

    The current markup looks like this
    HTML Code:
    <a class="category-subs" href="http://www.sweetjujubead.com/catalog/index.php?main_page=index&cPath=11_1_2">
    <span class="category-subs-parent">     Gold Band</span>
    </a>
    If I could wrap the ENTIRE selected category in the "category-subs-parent" class, then I think I could set it to border: none; and accomplish what I'm looking to do.

    The markup would look something similar to
    HTML Code:
    <span class="category-subs-parent">
    <a class="category-subs" href="http://www.sweetjujubead.com/catalog/index.php?main_page=index&cPath=11_1_2">Gold Band</a></span>
    </a>
    I hope this isn't as complicated as it sounds. Any ideas?

  2. #2
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: tweaking category sub styles

    Wouldn't it be simpler just to change the underline to an overline?

    Code:
    border-bottom:2px dashed #B15148;
    becomes:

    Code:
    border-top:2px dashed #B15148;
    You might have an extra line at the top to get rid of and one to add at the bottom but that shouldn't be too hard.

  3. #3
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,279
    Plugin Contributions
    0

    Default Re: tweaking category sub styles

    try this , is a long shot ..
    add this to your stylesheet.css and see if works. i can not make it work remotely .

    a.category-subs:visited {
    border:none;
    }

  4. #4
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: tweaking category sub styles

    If you use the pseudo-class 'visited' then it will apply to any of the links that have been visited even if you get it to work. What you want is the pseudo-class 'active', but that has loads of browser issues.

    If you apply the dashed border to the top of category-top and the top of category-subs you are pretty much there as the screenshot shows (obviusly you are going to need to adjust the padding) At least crystal and pearl appear to be grouped with 'gold band'.

    If you want to get rid of the border above the first level of category-subs, i.e. gold band, then that might be trickier.
    Attached Images Attached Images  
    Last edited by niccol; 10 Jul 2009 at 10:18 PM.

 

 

Similar Threads

  1. Vertical Multilevel Slideout Category Menu tweaking
    By familynow in forum Addon Templates
    Replies: 6
    Last Post: 26 Jul 2012, 05:42 PM
  2. category styles
    By macbain in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 1 Mar 2011, 07:03 PM
  3. changing sub-category styles
    By adamsmith1 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 13 Oct 2009, 11:58 PM
  4. Millions of Attributes or hacking a Sub sub sub Category?
    By liquidpictures in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 12 Aug 2009, 02:25 PM
  5. Spacing and Font Styles in Sub-Categories
    By mudcreek in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 19 Apr 2007, 05:32 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