![]() |
Quick CSS question
Trying to change the font color of a link h2.
I guess the default "a" is taking over with another color. I have Code:
.sponsors h2 a { Code:
<h2 id="sponsors"><strong> Should it be this? Code:
a:sponsors { |
if you use chrome you can right mouse click on particular element and find out exactly which rule is taking over color with "inspect element"
btw .something in html is class="something" id="someid" in css marked such as #someid id > class edit, a:sponsors is way out of line, simply wrong , it's used to set properties for a:visited, a:link, a:active you can do a.sponsor:visited for exemple |
ya the . is the issue. change it to # it should work
|
Ahhh. Changed it and it's still not working. Hmmph
|
cuz it's
#sponsors a {...} or #sponsors strong a {..} |
one more tip
NEVER use same id twice or more on the same page, that's what classes intended for |
Try
#sponsors a:hover { color : #fff; } replace hover with link, active, visited, etc. |
Quote:
.sponsors { color:#FFF; } Hey I can still edit this... damn. Not changing anything, just adding I am not a css expert in any way shape or form. I solve issues like this by throwing in an inline style and moving on. . |
Fuck it, just changed it to h4 and wrote up a new class that seemed to work.
|
Do you know if there is a body style set to the links?
you also have 2 styles to that, #sponsors and .sponsors Removed or rename one of them? Contact me and i will be happy to fix this issue for you. |
Yeah there was a body style for links, hence the reason I was trying to name it another class.
I've got it working now but thank you all. :thumbsup |
All times are GMT -7. The time now is 09:13 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123