Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 8 of 8

Thread: Custom CSS Class for product arrows and "view larger image"?

  1. #1
    skpr is offline Member
    Join Date
    Feb 2010
    Posts
    31

    Default Custom CSS Class for product arrows and "view larger image"?

    I need to apply a custom CSS class to the arrow images and the "view larger image" image on product detail pages, but I can't find where to do this.

    The problem is that we have a CSS class that applies a 2px blue border around all images that are links, but we need to apply an exception (border: none) to these specific images.

    Thanks!

  2. #2
    AspDotNetStorefront Staff - Scott's Avatar
    AspDotNetStorefront Staff - Scott is offline Administrator
    Join Date
    Mar 2007
    Location
    Ashland, OR
    Posts
    2,390

    Default

    You should be able to add a 'ProductNavLink' style to the stylesheet and the software will use that style for those buttons. We reference that style in the XSLT function that creates them.

  3. #3
    skpr is offline Member
    Join Date
    Feb 2010
    Posts
    31

    Default

    Not sure if I'm understanding correctly. I tried adding

    .ProductNavLink
    {
    border: none;
    }

    and

    ProductNavLink
    {
    border: none;
    }

    into style.css for our default style, but neither worked. We're using v8 of the software.

    Can you tell me what I'm doing wrong? Thanks!
    Last edited by skpr; 02-15-2010 at 01:29 PM.

  4. #4
    skpr is offline Member
    Join Date
    Feb 2010
    Posts
    31

    Default

    I am still having problems with this. When I apply the following CSS

    .ProductNavLink img
    {
    border: none;
    }

    a:visited.ProductNavLink img
    {
    border: none;
    }

    The link borders on the arrows are removed, but NOT the link border on the "view larger image" image button.

    Help, please!
    Last edited by skpr; 02-16-2010 at 11:40 AM.

  5. #5
    skpr is offline Member
    Join Date
    Feb 2010
    Posts
    31

    Default

    There doesn't seem to be any CSS class applied to the "view larger image" image button.

    How can I style this image?

  6. #6
    ASPAlfred is offline Senior Member
    Join Date
    Nov 2007
    Posts
    2,244

    Default

    That's an image located under your {root}/skins/skin_1/images/showlarger.gif folder.

  7. #7
    skpr is offline Member
    Join Date
    Feb 2010
    Posts
    31

    Default

    I know that. My question is, how can I apply a CSS class to remove a border from around this image?

    Editing the image itself will be of no help here.

  8. #8
    DanV's Avatar
    DanV is offline Ursus arctos horribilis
    Join Date
    Apr 2006
    Posts
    1,568

    Default

    just drop a div or a span around the GetProductImage function and assing a style to that. It should be inherited by child elements.