Rowby Goren
asked on
Modifying class, in a cascading way, for one element of page
Hello
Please look at this page:
http://rickythealien.com/ (development site)
There are two buttons near the bottom of the page. Both have the word "Birthday" in them.
I want to make the color of the buttons white and the text also white. I only want the css change to affect these types (class?) of buttons.
I tried this code and it did not work. (Initially just to turn the font into white text. The next step would be to turn the button also into white, which I have not attempted yet.)
Thanks!
Rowby
Please look at this page:
http://rickythealien.com/ (development site)
There are two buttons near the bottom of the page. Both have the word "Birthday" in them.
I want to make the color of the buttons white and the text also white. I only want the css change to affect these types (class?) of buttons.
I tried this code and it did not work. (Initially just to turn the font into white text. The next step would be to turn the button also into white, which I have not attempted yet.)
.doodie-postcontent a:link a.ODude {
color: #ffffff;
text-decoration: underline;
font-size: 18px;
}}
Thanks!
Rowby
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The only things I can see on your page are two Links that say Birthday towards the bottom of the page. Can't see any buttons.
The colour of your links is styled in template.css, line 74.
To override this add a rule for your class of link to templates.css
.doodie-postcontent a.ODude:link {
color: #FF0000; //set the links to red
}
The colour of your links is styled in template.css, line 74.
To override this add a rule for your class of link to templates.css
.doodie-postcontent a.ODude:link {
color: #FF0000; //set the links to red
}
ASKER
Interesting.
I added the new code to the end of template.css and it is showing up in firebug that it should be red. But it is showing up as black in the html.
I see in firebug that in....
http://rickythealien.com/components/com_odudecard/include/default.css (line 248)
....that a hover is set for black.
Could this be causing the black to "override" the red??
Rowby
I added the new code to the end of template.css and it is showing up in firebug that it should be red. But it is showing up as black in the html.
I see in firebug that in....
http://rickythealien.com/components/com_odudecard/include/default.css (line 248)
....that a hover is set for black.
Could this be causing the black to "override" the red??
Rowby
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for the solution!
ASKER
Sorry for the huge delay in responding.
Yes, you are correct the modifications should be made in the default.css in the url you indicated.
I was able to modify the default.css to get rid of the button area, but I am still seeing the black font text.
Attached is the code I have so far. So what is left is to modify the default.css to make the BUTTON text white no matter if it is active, hovered, etc. Always white and no underline.
Thanks!
Open in new window