patrmich Posted March 6, 2012 Share Posted March 6, 2012 Hi, Under each sub-category image, there is a title (which is an underlined link) The style of every title is given by some code in the global.css file : color: #5D717E; outline: medium none; text-decoration: underline; My question is the following : Is there a way to amend the colour of some of the titles ? As an example, is it possible to have on the same page : - some titles in blue - and some other titles in red Thank you in advance for any hemp in this matter. Patrick Link to comment Share on other sites More sharing options...
phrasespot Posted March 8, 2012 Share Posted March 8, 2012 What the color decision would be based on? Link to comment Share on other sites More sharing options...
patrmich Posted March 13, 2012 Author Share Posted March 13, 2012 Hi, I just would like to choose freely the colour of the font of the title. If I had to define a rule, I would say : - when word1 is part of the title, the font of the whole title would have to be pink - when word2 is part of the title, the font of the whole title would have to be blue Thank you in advance for any help. Patrick Link to comment Share on other sites More sharing options...
phrasespot Posted March 13, 2012 Share Posted March 13, 2012 This cannot be achieved with CSS and requires modification to the template (and possibly to the relevant controller to define the list of words for each color). Link to comment Share on other sites More sharing options...
patrmich Posted May 19, 2012 Author Share Posted May 19, 2012 Hi, This is Patrick again. I wonder whether changing the font colour by adding a condition with javascript code. What do you think about it ? Is there a way to allow the execution of some specific javascript on a page ? Thank you in advance for any help. Patrick Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now