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:
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:
Thanks for the help.
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.
no worries, you can add this line in the form HTML too :
I prefer you replace the ../ with a real absolute url
Regards
Max
<link rel = "stylesheet" type="text/css" href=" ../myFile/myCSS.css">
I prefer you replace the ../ with a real absolute url
Regards
Max
: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?
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?
just create your css file somewhere on the website public directory and use it! no security, your template is already doing this...
Max
Max
This topic is locked and no more replies can be posted.