Forums / Templates, Stylesheets, Page Layout / underlining links in center box

underlining links in center box

Locked

Views: 1,279

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
31 Mar 2007, 11:00 PM
#1
stumped avatar

stumped

New Zenner

Join Date:
Oct 2004
Posts:
84
Plugin Contributions:
0

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

31 Mar 2007, 11:19 PM
#2
miles avatar

miles

Zen Follower

Join Date:
Oct 2006
Location:
At Home
Posts:
357
Plugin Contributions:
0

Re: underlining links in center box

I have the same issue too...

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

- Nothing is impossible. Some things are just less likely than others. -

31 Mar 2007, 11:23 PM
#3
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

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

Breakfast: the most important donut of the day.

31 Mar 2007, 11:39 PM
#4
stumped avatar

stumped

New Zenner

Join Date:
Oct 2004
Posts:
84
Plugin Contributions:
0

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

2 Apr 2007, 8:50 PM
#5
tmc_sherpa avatar

tmc_sherpa

Zen Follower

Join Date:
Mar 2007
Posts:
158
Plugin Contributions:
0

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.

Lazy and willing to work very hard to stay that way

2 Apr 2007, 11:33 PM
#6
stumped avatar

stumped

New Zenner

Join Date:
Oct 2004
Posts:
84
Plugin Contributions:
0

Re: underlining links in center box

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

3 Apr 2007, 2:30 AM
#7
tmc_sherpa avatar

tmc_sherpa

Zen Follower

Join Date:
Mar 2007
Posts:
158
Plugin Contributions:
0

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 :P 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.....

Lazy and willing to work very hard to stay that way

3 Apr 2007, 3:16 AM
#8
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: underlining links in center box

TMC_Sherpa:

mind you, it should NOT be named underscore in case you don't like it and change it later :P 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? :cheers:

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