Skip to main content
8 events
when toggle format what by license comment
Apr 13, 2017 at 12:33 history edited CommunityBot
replaced http://webmasters.stackexchange.com/ with https://webmasters.stackexchange.com/
Apr 29, 2014 at 10:09 comment added Simon Hayter @CamSpy CSS generally works in reserve order in terms of importance. So the first is less important as the last... So if you have rules that clash the last CSS will be treated as more important as the first CSS file unless a !important Is used. Put <link> after all your other CSS files and it'll work fine. Or use more specific styling in your main template as @w3d has suggested, but correct loading of order of CSS will resolve this issue too.. if using WP check your enqueues and load via functions or similar rather than editing just the header.php.
Apr 29, 2014 at 10:09 comment added CamSpy @w3d thanks for that, silly me I couldn't think of this myself, it perfectly solves the issue! However, since you did not post this as an answer, but comment only, I cannot select it as the solution. Post it as an answer so i will do my part
Apr 29, 2014 at 9:37 comment added MrWhite @CamSpy: The CSS does not necessarily need to be physically located after the script in order to override styles that the script might generate. You need to use specificity. ie. Make your custom styles more "specific".
Apr 29, 2014 at 9:27 comment added CamSpy unfortunately putting a CSS file within <head> </head> is not gonna work as CSS needs to go after the Addthis script, to override Addthis styles with my custom ones. I cannot use inline CSS as well since I have no way of getting inside of Addthis code and insert my inline style into it.
Apr 29, 2014 at 8:53 history edited Simon Hayter CC BY-SA 3.0
added 12 characters in body
Apr 29, 2014 at 8:47 history edited Simon Hayter CC BY-SA 3.0
added 789 characters in body
Apr 29, 2014 at 8:38 history answered Simon Hayter CC BY-SA 3.0