inherit
149509
0
May 31, 2016 10:22:13 GMT -8
RADesign
328
November 2009
radesign
|
Post by RADesign on Apr 20, 2013 5:27:26 GMT -8
For some reason my links don't change color on hover.
They do when I copy line 133 (default theme); a:hover { color: link_hover_color; font: link_hover_font; text-decoration: link_hover_decoration; } to the bottom of the CSS. That's not how it should be, is it?
And no, this isn't just happening on my board. Some of my members seem to have the same problem. Is this a bug?
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Apr 20, 2013 7:41:16 GMT -8
For some my links don't change color on hover. They do when I copy line 133 (default theme); a:hover { color: link_hover_color; font: link_hover_font; text-decoration: link_hover_decoration; } to the bottom of the CSS. That's not how it should be is it? And no, this isn't just happening on my board. some of my members seem to have the same problem. Is this a bug? That sounds like a rule of equal weight (specificity) is defining a hover color further down in the stylesheets since moving yours to bottom then gets it working. In cases of conflicting rules of equal weight the last one wins. A forum link would reveal which rules are in competition with yours but you could try increasing the weight of your rule by adding a class or id to the selector, upping the ante until your rule wins even before the race starts
|
|
inherit
149509
0
May 31, 2016 10:22:13 GMT -8
RADesign
328
November 2009
radesign
|
Post by RADesign on Apr 20, 2013 8:07:08 GMT -8
hmmm... I just tried this on a new default template. The result is the same. Links don't change color on hover!
|
|
#00AF33
Bark Different.
102833
0
1
Feb 12, 2023 16:57:46 GMT -8
RedBassett
I'm a Marxist/Lennonist of the Groucho/John variety.
15,405
April 2007
applecomputer
RedBassett's Mini-Profile
|
Post by RedBassett on Apr 20, 2013 9:35:29 GMT -8
Can you provide the forum URL?
|
|
inherit
149509
0
May 31, 2016 10:22:13 GMT -8
RADesign
328
November 2009
radesign
|
Post by RADesign on Apr 20, 2013 10:21:39 GMT -8
|
|
inherit
(??_?)
181912
RIP RIP RIP Almost RIP - Why does this social section still exist?
0
1
Jul 6, 2015 20:35:17 GMT -8
CheatAreZee
56,804
March 2005
zyvoloski
Ricky's Mini-Profile
|
Post by CheatAreZee on Apr 20, 2013 12:01:51 GMT -8
Hi RADesign, Out of curiosity, if you modified your CSS to do the following: a:hover { color: link_hover_color !important; ... Does the hover color appear with that in place?
|
|
inherit
149509
0
May 31, 2016 10:22:13 GMT -8
RADesign
328
November 2009
radesign
|
Post by RADesign on Apr 20, 2013 12:23:45 GMT -8
Hi CheatAreZee, Yeah, that did the trick. Question is though, why should I have to modify a default theme for this to work?
|
|
inherit
(??_?)
181912
RIP RIP RIP Almost RIP - Why does this social section still exist?
0
1
Jul 6, 2015 20:35:17 GMT -8
CheatAreZee
56,804
March 2005
zyvoloski
Ricky's Mini-Profile
|
Post by CheatAreZee on Apr 20, 2013 12:42:39 GMT -8
Not sure exactly, as it shouldn't be required especially if it's done on an un-modified theme. I'll do some tests with a default theme to see if I experience the same issues with the link hover, and will report my findings to the developers to look into further
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Apr 20, 2013 17:48:53 GMT -8
.content-box a, .container a { color: #004FA0; }
.list a { color: #004FA0; }
Both those rules would trump your rule since they are of equal weight (1 class and 1 tag) as your rule at line 192 and line 249 respectively, with the last rule of equal weight winning. If you had modified your selector to #content a:hover (1 id, 1 pseudo-class and one tag) then it would be heavier than the other two and win regardless. Adding important lets it override all other weights except another important of higher weight but it will come back to bite you, use sparingly
|
|
inherit
149509
0
May 31, 2016 10:22:13 GMT -8
RADesign
328
November 2009
radesign
|
Post by RADesign on Apr 21, 2013 20:46:58 GMT -8
.content-box a, .container a { color: #004FA0;} .list a { color: #004FA0;} Both those rules would trump your rule since they are of equal weight (1 class and 1 tag) as your rule at line 192 and line 249 respectively, with the last rule of equal weight winning. If you had modified your selector to #content a:hover (1 id, 1 pseudo-class and one tag) then it would be heavier than the other two and win regardless. Adding important lets it override all other weights except another important of higher weight but it will come back to bite you, use sparingly I'm afraid you lost me, Chris. I did not put in those rules. The links just won't change color on hover in an unmodified default Theme (or in any of my Themes for that matter).
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Apr 22, 2013 4:31:08 GMT -8
Those are 2 of the hundreds of other rules set by Proboards which is why I keep harping on one of the basic tenets of CSS which is weighting (specificity). Anybody using CSS has to be aware of this, there are rules that define flow of cascading stylesheets and the ability to recognize and alter that flow is what is referred to as "using CSS".
|
|