Include css content in html

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Include css content in html

nietzsch3
I need translate this jsp fragment into thymeleaf syntax

    <style> <%@include file="/fonts/fonts.css"%> <%@include file="/css/header.css"%> <%@include file="/css/footer.css"%> <%@include file="/css/styles.css"%> </style>
It's possibile?

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: Include css content in html

Reiju
<link th:href="@{/css/fileName.css}" rel="stylesheet">
Reply | Threaded
Open this post in threaded view
|

Re: Include css content in html

nietzsch3
Thank's for reply but i don't want use refererence to css. I want include css content file in html page, like fragments.

Thanks a lot