We can't see your CSS, but if the property is struck out, that means you have another rule applied to the element which overrides it.
Use the "computed style" tab in dev tools to see the actual value of the
property. You should be able to expand it to see the list of applicable rules, which should tell you what's overriding your
Computed Style Pane - Chrome
Examine computed CSS - Firefox