Page 1 of 1

Add CSS style tag

Posted: Mon Oct 15, 2018 1:41 pm
by RSBasic
Hello,

I want to be able to add my own CSS rules without Javascript.

A function for passing CSS rules would be required.
Example:
Code: Select all
EnableExplicit

Define Rules.s

Rules + ".MyClass { color: #ff0000; }"

AddCSSRules(Rules)


Result:
Code: Select all
<head>
...
<style type="text/css">
.MyClass { color: #ff0000; }
</style>
...
</head>


The function "AddCSSRules()" is only an example. The function can also be named differently.

Or if it is possible, introduce a CSS rule with a character. As for example with Javascript with the character "!".