Results 1 to 8 of 8
  1. #1
    Join Date
    Oct 2004
    Posts
    84
    Plugin Contributions
    0

    Default underlining links in center box

    Hello,

    I want to get just the product names underlined in the product listings but the product image is underlined also. Anyway of getting rid of the lines under the images?

    here's the site: http://64.130.37.32/index.php?main_page=index&cPath=12

    Thanks for any help

  2. #2
    Join Date
    Oct 2006
    Location
    At Home
    Posts
    370
    Plugin Contributions
    0

    Default Re: underlining links in center box

    I have the same issue too...

    P/S: BTW, nice site you have there stumped.

  3. #3
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: underlining links in center box

    Both the image and the text are inside a DIV with a class of "categoryListBoxContents". So to get the image to not have an underline, but the text to have it, you'd do something like this in your style sheet...

    .categoryListBoxContents a {text-decoration: underline;}
    .categoryListBoxContents img {text-decoration: none;}

    or maybe...
    .categoryListBoxContents a img {text-decoration: none;}

    You may have to fuss with that to get it to work. I'm a little fuzzy on specificity in CSS, but that's going in the right direction I think.

    HTH

    Rob

  4. #4
    Join Date
    Oct 2004
    Posts
    84
    Plugin Contributions
    0

    Default Re: underlining links in center box

    Hi Rob,

    That was the first thing I tried, but to no avail, still have the line under the image.

    Thanks for the reply tho.

    and Miles, thanks for the complement

    Jackie

  5. #5
    Join Date
    Mar 2007
    Posts
    159
    Plugin Contributions
    0

    Default Re: underlining links in center box

    /includes/modules/category_row.php

    $list_box_contents[$row][$col] = array('params' => 'class="categoryListBoxContents"' . ' ' . 'style="width:' . $col_width . '%;"',
    'text' => '<a href="' . zen_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . zen_image(DIR_WS_IMAGES . $categories->fields['categories_image'], $categories->fields['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br />' . '<span class="underscore">' . $categories->fields['categories_name'] . '</span>' . '</a>');

    add the stuff in red to a copy you make in /includes/modules/my template/

    then add to the bottom of you css file

    .underscore {
    text-decoration: underline;
    }

    and bobs your uncle.

  6. #6
    Join Date
    Oct 2004
    Posts
    84
    Plugin Contributions
    0

    Default Re: underlining links in center box

    Thank you so much for the help, worked like a charm

  7. #7
    Join Date
    Mar 2007
    Posts
    159
    Plugin Contributions
    0

    Default Re: underlining links in center box

    mind you, it should NOT be named underscore in case you don't like it and change it later other than that, glad to help out. The first couple of goes blew up in a fashion that made me proud, matching up periods and quotes can drive a person to drink sometimes.....

  8. #8
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: underlining links in center box

    Quote Originally Posted by TMC_Sherpa View Post
    mind you, it should NOT be named underscore in case you don't like it and change it later other than that, glad to help out. The first couple of goes blew up in a fashion that made me proud, matching up periods and quotes can drive a person to drink sometimes.....
    Sometimes?
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

 

 

Similar Threads

  1. hover over links in center box new products
    By ebaobao in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 17 Aug 2011, 09:33 AM
  2. CSS: Underlining Links in Categories Sidebox
    By eyal8r in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 2 Feb 2010, 07:25 PM
  3. Help Center Live - center the online/offline box
    By terryparley in forum General Questions
    Replies: 5
    Last Post: 9 Oct 2009, 03:01 AM
  4. center position of review box and bestseller box.
    By littlehawk in forum Basic Configuration
    Replies: 4
    Last Post: 26 Feb 2009, 02:07 AM
  5. How do I get the home/login etc buttons to center and the attributes box to center?
    By eye will in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 6 Nov 2007, 09:11 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