Forums / Templates, Stylesheets, Page Layout / adding border to images in reviews sidebox, but NOT around stars

adding border to images in reviews sidebox, but NOT around stars

Locked

Started by koenvandamme on 9 Mar 2009, 4:56 PM · Views: 1,307

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
9 Mar 2009, 4:56 PM
#1
koenvandamme avatar

koenvandamme

New Zenner

Join Date:
Feb 2009
Posts:
53
Plugin Contributions:
0

adding border to images in reviews sidebox, but NOT around stars

Yet another lay-out question for you guys, but as long as you keep solving them them as quickly as you have, I'll keep posting new ones. What I mean to say is: thanks for being so helpfull.

I wanted a border around the images in the reviews sidebox so I added the following to my stylesheet:
#reviews img, {border: 1px solid #bc66cb;}

This did the job. However it also put a border around the stars (obviously because this is also an img). Does anyone know how I can exclude the stars from the style declaration and where I can do this?

9 Mar 2009, 5:10 PM
#2
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: adding border to images in reviews sidebox, but NOT around stars

a link to your site ..

also , might help to create new rule for image in review section , so it wont effect the stars.

9 Mar 2009, 5:23 PM
#3
koenvandamme avatar

koenvandamme

New Zenner

Join Date:
Feb 2009
Posts:
53
Plugin Contributions:
0

Re: adding border to images in reviews sidebox, but NOT around stars

tony_sar:

a link to your site ..

also , might help to create new rule for image in review section , so it wont effect the stars.

Here's my site: http://mylittletoy.com/index.php. It's still under construction. You'll find the reviews at the bottom left.

I'm not sure what you mean by new rule for image in review section? Please explain.

9 Mar 2009, 5:49 PM
#4
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: adding border to images in reviews sidebox, but NOT around stars

the only way i can think of to remove the border from around the stars ,is to actually modifying review sidebox and adding id or class.

but mean time you can add this to the end of your stylesheet.css

#reviews img{
border: 1px solid #bc66cb;
}

this will add the border around review image and stars only as it now borders are applied to many other part of your site .

don't forget to remove the border from section that you originally added .

9 Mar 2009, 6:43 PM
#5
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: adding border to images in reviews sidebox, but NOT around stars

now you can do following .. before any modification , do backup ..

copy your tpl_reviews_random.php to your override. open the copy and add a class after

SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT around line 13

so looks like this

SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'class="reviewImg"'

you can name your class anything you want as long as is not repeated in your site ..

at the end of your stylesheet.css add the following .

.reviewImg {
border:1px solid #BC66CB
}

10 Mar 2009, 9:09 AM
#6
koenvandamme avatar

koenvandamme

New Zenner

Join Date:
Feb 2009
Posts:
53
Plugin Contributions:
0

Re: adding border to images in reviews sidebox, but NOT around stars

tony_sar:

now you can do following .. before any modification , do backup ..

copy your tpl_reviews_random.php to your override. open the copy and add a class after

SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT around line 13

so looks like this

SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'class="reviewImg"'

you can name your class anything you want as long as is not repeated in your site ..

at the end of your stylesheet.css add the following .

.reviewImg {
border:1px solid #BC66CB
}

That totally worked! :clap:

Thank you so much for looking in to this.