Enable or disable graph grid

Maybe the error is how I copy the text in.
i take the svg.canvas-background {
display: none !important;
} and copy it to folder snippet as a rtf .


and then i save it as css. - correct? and enable it from the “Settings > Appearance > CSS snippets” menu in Obsidian.

is this ok?