Help - Search - Members - Calendar
Full Version: Colour of a link
CutePHP Forums > CuteNews > Problem Solving / Help & Support
Frankovski
I have a problem where i can't find the answers from in this forum.

I changed the default template. In my basic page the linkcolor is white (#FFFFFF). The cutenews script is placed in a white background. So if i place a link in my newsitem, it stays blank. How can i fix this problem. I want the linkcolor green (#003300).

See www.stgdierenambulancezoetermeer.nl/nieuws.php for the problem. Under the image of the lady is a link.

Thanks in advance!


rokker93
In your sites css it says

a:link {
color: #FFFFFF;
text-decoration:none
}

change #FFFFFF; to #003300; that should make all links green, i hope it helps =]
Frankovski
Yes, that will indeed help, but then will the links that are white now be green and not be seen smile.gif

(lKj)
What if you wrap all of your news content in a div and call it something? Then you could define links through

div.news a:link, etc.

Or if you're using tables, giving the table with the news content in it some class/id.
FUNimations
or
<span style="">[link]full link[/link]</span>
should work aswell
Frankovski
Thanks for your reactions, but with the solution of Funimations my whole text became a link (and unvisible). And with the solution of (lKj) there didn't happened anything. Maybe i did it wrong (im not a pro rolleyes.gif) but i don't no what i can do about it.
(lKj)
span style="" would be less good because you can't define a:link, a:hover etc.

However, following FUNimations' example, if you wrap full/short news in a span called cutenews for example, you should be able to define the links from there smile.gif.

Example:
in the templates
CODE
<span class="cutenews">{short-story}</span>

in CSS
CODE
span.cutenews a:link, span.cutenews a:visited {
  color: #030;
}
span.cutenews a:hover, span.cutenews a:link, span.cutenews a:focus {
  color: #5a5;
}

(lKj)
span style="" would be less good because you can't define a:link, a:hover etc.

However, following FUNimations' example, if you wrap full/short news in a span called cutenews for example, you should be able to define the links from there smile.gif.

Example:
in the templates
CODE
<span class="cutenews">{short-story}</span>

in CSS
CODE
span.cutenews a:link, span.cutenews a:visited {
  color: #030;
}
span.cutenews a:hover, span.cutenews a:link, span.cutenews a:focus {
  color: #5a5;
}

Frankovski
If you guys where girls then i would kiss you! It's working super now!

Thank you veryyyy much!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.