Trouble adding CSS to my page?

I’m trying to add CSS to increase the font size of the “Send Mail” button text on this page which uses Doobox’s contact form stack.

I cannot get my custom CSS to override the stylesheet’s CSS. I can inspect the element in RW and find the CSS, change it in the developer’s tools console window and see the change, but nothing happens when I enter the same value in the CSS tab of my page in the RW inspector window. The screen shot shows I set the height to 16px, but it still displays as 12px. What do I need to do to make this work?


A quick ‘Inspect Element with Firebug’ of that pages suggests you’re doing the right thing.

Changing it there to an absurdly high value - just to be sure - 60px, does suggest it’s the place to do so.

If that helps, there’s some other part of the necessary workflow that’s not included.

Yes, that’s what I need help with.


.stacks_in_311_page2sendmail {
    font-size: 16px !important;

Might be worth a try.

1 Like

kryten, Fabulous! Worked like a charm. Is it the “!important” syntax that clues RW to override the CSS code?

Sorry for the delay there.

The !important directive is rather like a flag that tells other styling rules downstream in the styling hierarchy that could overrule that style setting, not to. It’s not bomb proof though as there are situations where it won’t help and in general it’s use should be limited. In this case, I think you will be fine :slight_smile:

Best wishes!

1 Like

Please write how to properly write the path to my custom CSS file in Resources?