I have a custom module which contains a template directory and a
.tpl.php. I would like to add a specific stylesheet for this template. Right now, my tpl-file looks like:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>My Title</title> <link rel="stylesheet" type="text/css" href="sites/all/themes/mytheme/css/styles.css" /> </head> <body> <div class="content-container"> <p>My content</p> </div> </body> </html>
And it works, but only partially... How can I include the css stylesheet in a more proper (read: more Drupal) way? I've tried the
drupal_add_css(), but with no results... But maybe I did it the wrong way. Any suggestions?