Forums » Customize

Changing links?

Kolya
AUSTRALIA
2007-07-05 01:57:07
 

I was wondering if it is possible to have two styles for links? I want to have a background colour for links in the menu, but if I change the css my images get highlighted as well...
I know it's possible to have multiple styles using CSS, but I can't work out how to change the tags in my indexhibit site.
Thanks heaps in advance for any help,
Nick
www.nickolya.net

Vaska A
I WROTE THIS
2007-07-05 10:43:19
 

You don't need to change any tags. Just change the css.

Kolya
AUSTRALIA
2007-07-05 10:56:31
 

I'm not sure how to change the css so it affects just the links? When I change the css to a:link { background-color: red; } for example, it puts a visible red box under my images too (I'm using Thickbox). I've been teaching myself CSS, and I've tried lots of different things, but still can't work it out. There's probably a really obvious solution that I've missed...

Vaska A
I WROTE THIS
2007-07-05 14:31:33
 

You're doing it right. The reason it shows up behind your images is because they are also links. Perhaps add this rule and see if the red behind the images goes away.

a:link img { background: transparent; }

Kolya
AUSTRALIA
2007-07-05 14:51:10
 

No, I've tried that already and it doesn't seem to change anything. Thanks anyway though Vaska- indexhibit is an incredible tool!

Kolya
AUSTRALIA
2007-07-06 13:01:38
 

Just for reference I found a work-around; it's possible to stop the background colour showing underneath the thumbnails by adding a colour to the image padding in the CSS:

In my case: #img-container p {padding: 0 0 3px 0 white; }

Not a perfect solution, but works fine.

Showing 1 - 6 of 6 posts in Forum > Customize > Changing links?
 

You need to be logged in to post.