By qa2006 on
Hi,
I have this external style sheet that enable a tab-based content which I want to place in the body but the problem is that the style sheet has to be within the
tag but there isn't such option in the edit feature, it only allows you to add title and body content. Where can I add this external style sheet?
Thanks,
Comments
HTML and CSS
I think you should know at least HTML and CSS when you're providing a Internet service such as a webpage.
Anyway, of course you also can pay someone. Because it's not enough to have stylesheet. The theme has to use it.
Put the style sheet in your themes directory, include it in the head of your main page (page.tpl.php if you use phptemplate) using the HTML style tag. Then rewrite your theme to use the CSS definitions that you marked in your external style sheet. If you wrote it especially for drupal, you may have taken care of drupal's div-naming strategy, so you just have to check if it works and to cut the edges.
I'm not the original poster,
I'm not the original poster, but I do know HTML, CSS, PHP along with XML, BGP, OSPF, ATM and RRD. I don't see what that has to do with how Drupal themes work though.
I've just started using Drupal in the last month, and I've noticed that the page.tpl has a 'print $styles' in the HEAD section. I've been assuming that there's some control panel somewhere where I can add additional stylesheets - I haven't needed to do this yet, so I haven't looked hard. Is that really the True Drupal Way to add a stylesheet? What is the $styles used for then?
Adding External Stylesheet
I have a similar requirement. All the content contributors to one of my Drupal sites know a little bit of HTML and CSS. I have written a custom stylesheet. The site members know how to make use of the CSS. I want to add this stylesheet to all themes.
What is the best method to add a stylesheet to Drupal?
Sudheer. S
Binary Vibes Information Technologies Pvt. Ltd.
www.binaryvibes.co.in
here's how i do it, there's
here's how i do it, there's other methods, but this is easiest for me
http://pingv.com/blog/laura/200703/theming-drupal-overview
they have a good PDF containing a breakdown of drupal and what files to edit and not edit
RE: Adding External Stylesheet
You can use drupal_add_css for this.