Add CSS style tag

Got an idea for enhancing SpiderBasic? New command(s) you'd like to see?
User avatar
RSBasic
Posts: 36
Joined: Mon Oct 15, 2018 1:17 pm
Location: Berlin
Contact:

Add CSS style tag

Post 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 "!".
ImageImageImageImageImage