Why is it invulnerable to stylization?

I just want to change its color to # DD4814, but I can’t. This is a "share button" by the way. What could be the reason?

<span class='st_sharethis' st_title='<?php the_title(); ?>' st_url='<?php the_permalink() ?>' displayText='Compartir'></span>

<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script><script type="text/javascript">stLight.options({publisher:'eb2f12b2-11c6-4013-bf2c-e42dcf3112f5'});</script>
+3
source share
2 answers

This works for me:

.stButton .sharethis {color:#DD4814}
+3
source

Typically, a style will not work if one selector takes precedence over the one you are using. This is called selector specificity , and there is a lot of documentation to help you understand how this works.

- , , , . , : CSS - , ( jquery) http://htmldog.com/guides/cssadvanced/specificity/

, , Firebug, " ". Firebug Style, , , CSS . , , , , .

0

Source: https://habr.com/ru/post/1780122/


All Articles