Chris Jarvis wrote: Hi James
.officeUse {pointer-events:none;}
I can't get the field in question to hide yet though.
When I create the CSS code in Custom CSS do I need to prefix the .officeUse part with any #name?
^ I think that
should work. Sounds like a laggy cache issue again. If it works when you add the CSS manually through the Dev Tool -> Inspector (works when I test it on a random field on my site

), then it should also work if you've applied the proper class to your elements / selector declaration in your CSS.
You don't need to add an ID to the CSS selector (that would be a #whateverID) as the selector .officeUse
whould likely be unique within your site and you
shouldn't need to further limit the scope by also attaching other classes or IDs. The more items you add to your selector, the longer it takes the user's browser to process and render the page (CSS is all client side rendered, which is why different browsers handle things differently).
And keep in mind: when writing/declaring CSS, put a "." in front of your selectors that you want to use as classes, but when calling CSS through a 'class' attribute, don't put the period in. And don't add a "." if you are using HTML elements as part of your selector. If new CSS isn't working, quite often it's because I've either forgot to:
1) disable/refresh my site cache
2) put a "." in the class attribute or a "#" in the id attribute
- <div id="#myDivID" class=".myCSSclass"> (wrong)
- <div id="myDivID" class="myCSSclass"> (correct )
3) added/missed a "." (or a "#") in my CSS selector declaration
- .myDivID .a span myCSSclass {CSS-Rules-here;} (wrong)
- #myDivID a span.myCSSclass{CSS-Rules-here;} (right)