How is it possible to add some css from macro partial?. I am working on site based on grid. From datatype grid pages will be creatde og macros containing html sections.
Some of sections is contains css only for this section.
I have tried setting up with: @RenderSection("css", required: false)
Also I have tried to make an HtmlExtensions helper. This is working out just fine if I add inside But when adding inside css codes is not added.
Can anyone show example on how this can be done?
Thanks
Adding css from MacroPartial
How is it possible to add some css from macro partial?. I am working on site based on grid. From datatype grid pages will be creatde og macros containing html sections.
Some of sections is contains css only for this section.
I have tried setting up with: @RenderSection("css", required: false)
Also I have tried to make an HtmlExtensions helper. This is working out just fine if I add inside But when adding inside css codes is not added.
Can anyone show example on how this can be done? Thanks
Hey Anders
Not sure what you are trying to achieve. Can you give an example?
Hi, Anders.
If I understand you correctly, it seems like you want to add some css to a macro partial.
To do this, add the following include and script to your view:
Try using the "style" tag inside the macro partial file.
is working on a reply...