Inline CSS for user defined styles

Hello everyone,

We know inline CSS in not allowed. But my script takes navigation color value from users and saves in database. Is it allowed simply using a short CSS block (e.g. .nav{background-color: {{ $color }};} in <head><style>) for applying the color?

Thank you.

for php script you can, better to add in footer.

1 Like

Thank you.

But would you please mention a way how to add CSS in footer? I know it should be added inside tag.

<style>.nav{background-color: {{ $color }};}</style> just before the </body>

1 Like

This seems new to me!

Thank you for your time.