Forums

css not applied

gauravdott 29 Nov, 2008
hi,
i created a form using chrono forms, and applied a reference to a css file using this format in the form code

<style type = "text/css">
@import url(path of css file);
</style>

but the problem is that css is not being applied to the form

please help.

Gaurav
GreyHead 29 Nov, 2008
Hi gauravdott,

Assuming that you are using Joomla 1.5 there are a couple of instructions that can be used to load scripts and styles:
<?php
$document =& JFactory::getDocument();
// Add a javascript file
$document->addScript("file_path");
// Add a css style file
$document->addStyle("file_path");
?>
Add one or both of these in your Form HTML code and Joomla will add the code to import them to the page headers.

Bob
This topic is locked and no more replies can be posted.