I have enabled LessCSS on my site and I have a node instance where I want to add a specific CSS.
I used the following piece of code:
<?php
drupal_add_css( '/sites/MyStuff/introduction.css');
?>
<div id="myid" class="box">
....some text
</div>
Yet, there is no import or link statement in my page source code for introduction.css
. I am not using compression. FireBug does not mention loading an introduction.css
file. I have doubled-checked and the file is properly located in the folder.
What could cause this issue? And how to solve it?
P.S.:
The css file contains the following:
.box {
color: green;
background-color: red;
}
The styling is not applied on the page.
drupal_add_css( 'sites/MyStuff/introduction.css');
, without the leading'/'