I'm trying to link the stylesheet to an html template, but it doesn't seem to work.
I use symfony2 and assetic. In the demo bundle, the css is linked with the line:
<link rel="stylesheet" href="{{ asset('bundles/acmedemo/css/demo.css') }}" />
So, in my mainBundle, I wrote the lines
<head>
<style>
{% block stylesheets %}
<link href="{{ asset('bundles/acmemain/css/demo.css') }}" rel="stylesheet" />
{% endblock %}
</style>
</head>
and put my demo.css file in the folder
Acme\MainBundle\Resources\public\css,
then I executed
php app/console assets:install
In this situation, my web page doesn't have css style, it is without formattation. If I write my css directly in my template, it works. But if I link it, it doesn't work.
How can I solve this?
My css file now is only a line:
h1{color:blue;text-align:center;}
Thank you.