Skip to content

Question: CSS in template #15

@ghost

Description

Hello Friends

Is there a way to define CSS klasses inside e.g. a <style> tag and use the classes and styles directly in the template?

Imagining something like this:

<style>
   .myClass {
        background-color: 'red';
    }
</style>
<div class="myClass">A div container</div>

I tried this and the style tags gets spliced and then not recognized. Or is it something we can already configure?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions