I am working on this page:
[url]http://vue.resolvedigital.com/pages/art-aesthetic-development
If you scroll down and click the link that says “Click here to see examples of Stage 1 comments.” you’ll get to what I need help with.
You’ll notice a popup div appears. The text in it is all supposed to be white but because the CMS I’m using is generating CSS that makes all <b>, <i> and <blockquote> tags colored dark grey, much of the text is too dark.
What I want is for all the text to be white, including the bold, italic, etc…
Now, yes, I could create a class and set these to white, BUT…. here’s the thing:
I’ve set up the color of the text in this box to be based on a variable set in a javascript function which opens the box. There’s a line:
obj.style.color = color;
where “color” is a variable passed to the function. You see why just creating a CSS class won’t work? The color won’t always be the same in the class as it is dependent on the parameter passed as the “color” variable to the function. I want to keep this function as flexible as possible. That is, I want to be able to put #FFFFFF into the function I created, and have ALL the text white, but if I send #0000FF to the function I want all the text to be blue. The CSS is taking precedence as it is.
First, is there a way in javascript to set the color of the bold text. So, for instance, when I set the color of the basic text with:
obj.style.color = color;
Is there a way to do something like:
obj.style.bold = color; ??? (I know that won’t work, right?)
Same for italic and blockquote.
OR….. is there a way to use css to simply remove the previous CSS definitions. For instance, in one of the CSS files generated by the CMS, there’s a link that says:
b { color: #333333; }
or something like that. I’d like to just eliminate this, but I don’t have access to that CSS file (although I can include additional CSS).
Can I do something like:
b {color:none;} ???
That didn’t seem to work, but I would like to one way or another remove that CSS definition.
I know this is a very specific need and I hope it is clear. I expect I’ll get some answers that miss the point, but please read this thoroughly. If you can help that would be really great!