Custom CSS

Path 11 Sep, 2008
Hi all,

I am a complete beginner in Joomla/Chronoforms so I am sorry if I am asking something trivial.
I would like to make a few forms that share the same CSS, my question is: Where do I put the CSS and how do I link to the CSS (I would like to use a relative path).

e.g.:

Form html:


<fieldset>
	<legend>test form</legend>
	
		<div class="data">
		<label>Name</label>
		<input type="text" name="name" id="name" />
		</div>

		<div class="data">
		<label>Date of Birth</label>
		<input type="text" name="dob" id="dob" />
		</div>
</fieldset>


I know I could add the CSS with the Form HTML but then I would have to repeat the process on each form, I was hoping I could add a line like:
 <link rel = "stylesheet" type="text/css" href=" ../myFile/myCSS.css">


Thanks for the help.
Max_admin 11 Sep, 2008
no worries, you can add this line in the form HTML too :

<link rel = "stylesheet" type="text/css" href=" ../myFile/myCSS.css">


I prefer you replace the ../ with a real absolute url

Regards

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Path 11 Sep, 2008
:o That was a quick reply!

I see, the thing is I would rather use a relative url but I have no idea where to put the css if I put a relative url. I am quite confused on "where" the start point is. As I mentionned I am relatively new to all this but isn't better to have relative path in terms of security?
Max_admin 11 Sep, 2008
just create your css file somewhere on the website public directory and use it! no security, your template is already doing this...

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.