Hello,

I am creating a theme based on an xhtml template.

I copied the xhtml into page.tpl.php and used bluemarine's page.tpl.php as a base from which to find the php code to place into my page.tpl.php and populate the theme with the drupal content. Being new to this I was impressed by how easy it was to get this working!

The problem is that the xhtml uses two style sheets - style.css and colour.css. Due to the way in which the styles are defined, merging these two sheets into one is almost impossible!

I print $styles in the section but drupal only seems to output the style.css stylesheet. The colour.css stylesheet is not parsed.

How can I have both style sheets correctly read and output by drupal from the page.tpl.php file? Do I need to define another variable for $styles or populate that with the new style as well somehow? How would I do that? Or is there an easier way :)

Any help would be very much appreciated!

Thanks,

NICK
neh@collective-thinking.com

Comments

WorldFallz’s picture

Check out:

drupal_get_css and drupal_add_css

Maybe those will help....

cmsproducer’s picture

At the very top of your style.css (must be the very first line to work) call all you other secondary files with the CSS @import directive
@import: url("path/other.css");

Here is an exhaustive review of: @import CSS directive - Including external CSS files and commands

-----
iDonny Productions: Web CMS Design, Development & Web Standards

cosmichippy777’s picture

Thank you very much I shall give that a go......!