Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Template design and Front-End Code

Post Reply
 
Thread Tools
  #1  
Old 02-06-2008, 11:16 AM
Tiestoo's Avatar
Tiestoo Offline
pp regular
 
Join Date: Nov 2007
Posts: 33
[CSS] different hover color for different link

This is probably very basic and easy stuff, but I can't get it right.

I want to change the color of the tags showing up in my image_template.html. Since the tag <TAG_IMG_LIST> will generate
Code:
Tags:<br/>
<a href="index.php?x=browse&amp;tag=nikon">Nikon</a>
<a href="index.php?x=browse&amp;tag=nature">Nature</a>
my idea was to find the code that generates this, and change it to something like
Code:
Tags:<br/>
<a class="tag" href="index.php?x=browse&amp;tag=nikon">Nikon</a>
<a class="tag" href="index.php?x=browse&amp;tag=nature">Nature</a>
My problem, I can't find the piece of code that generates how to display the tags. Besides, I feel like hacking PP :'(

Is there an other solution to change the color of a specified links in CSS/PP?
__________________
blauwgestreept.nl
Reply With Quote
  #2  
Old 02-06-2008, 02:04 PM
cfnerd Offline
forum loafer
 
Join Date: Feb 2008
Location: Wichita, KS
Posts: 1
Basically what i would do is wrap the tag list in a div then use css to apply the color or what ever else you want to do to the links.

This would be my suggestion.

<style type="text/css">
.taglinks a { color:black; }
.taglinks a:hover { color:#c0c0c0; }
</style>
<div class="taglinks">
<TAG_IMG_LIST>
</div>
Reply With Quote
  #3  
Old 02-06-2008, 02:18 PM
fredxeric's Avatar
fredxeric Offline
pixelpost guru
 
Join Date: Sep 2006
Location: Montréal, Québec, Canada
Posts: 407
Send a message via AIM to fredxeric Send a message via MSN to fredxeric
maybe just wrap a span & style between

html part:

Code:
Tags:<br/>
<div id="tags">
<TAG_IMG_LIST>
</div>

css part:
Code:
#tags a {
color: blue;
}
Reply With Quote
  #4  
Old 02-06-2008, 03:44 PM
Dennis's Avatar
Dennis+ Offline
Team Pixelpost
 
Join Date: Jul 2006
Posts: 2,394
Send a message via MSN to Dennis
Tags are created in the paged_archive addon. And besides that, tags do have a different ID, otherwise we can't change the fontsize: class="tagsxx" where xx is between 00 and 10.

<TAG_IMG_LIST> is probably without a style so you can do what fred-eric suggest. (or ask someone we both know )
__________________
My photoblog, powered by PixelPost 1.9 dev SVN | My Pixelpost Addons | My Cool Photoblog profile
Reply With Quote
  #5  
Old 02-08-2008, 11:37 PM
Tiestoo's Avatar
Tiestoo Offline
pp regular
 
Join Date: Nov 2007
Posts: 33
Hehe, thx, got it working. Learned some new CSS techniques.
This guy we both know is busy with a website for my brother now, so that was not an option
__________________
blauwgestreept.nl
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 03:15 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs