I’m trying to update some of the CSS with code injection and Casper/Ghost seems to fight back. For example, I cannot change the font-family for blockquote
styling no matter what I do. Margins between hr
? No way. Other css is modified with code injection without issue. Any idea why I’d run into problems with certain elements?
CSS selectors use specificity to decide which rule applied when there are two conflicting rules. If you haven’t already tried it, appending !important is often enough to get styles to apply. (If you already tried this, my apologies. Can you link a page with the problem and I’ll try to offer a better suggestion!)
It’s always the simplest things I overlook. Thank you! That did the trick.
1 Like