Title Color

Questions about XML that are not covered by the other forums should go here.
jonathanm
Posts: 29
Joined: Tue May 25, 2021 4:17 pm

Title Color

Post by jonathanm »

If I change the title color, it also changes the font color of the left-side TOC and footer links.

How can I change the title font color only?
image 1.PNG
image 1.PNG (197.62 KiB) Viewed 1345 times
image 2.PNG
image 2.PNG (200.27 KiB) Viewed 1345 times
jonathanm
Posts: 29
Joined: Tue May 25, 2021 4:17 pm

Re: Title Color

Post by jonathanm »

a, a:hover, a:visited {
color: #ed242d;
}

This changes all of those colors. I need title only standaline color that not linked to other fonts.
Costin
Posts: 842
Joined: Mon Dec 05, 2011 6:04 pm

Re: Title Color

Post by Costin »

Hi Jonathan,

Indeed, using the CSS rule as it is now, will match all the links, in all of their three variations, not only the publication title link.
To match only the publication title, you should use a selector with a higher specificity (like the class associated to the publication title element).
I.e:

Code: Select all

.wh_publication_title a,
.wh_publication_title a:hover,
.wh_publication_title a:visited {
  color: red;
}
Regards,
Costin
Costin Sandoi
oXygen XML Editor and Author Support
Harvey87
Posts: 1
Joined: Mon Oct 17, 2022 4:04 pm
Contact:

Re: Title Color

Post by Harvey87 »

Hello and thank you for this advice. I also changed the colour of the title of my site and it had the same effect with the links in the table of contents. But now it works thanks to your advice.

Thanks again,
jonathanm
Posts: 29
Joined: Tue May 25, 2021 4:17 pm

Re: Title Color

Post by jonathanm »

It worked! Thank you, Costin.
Post Reply