Please help me understand Css

  • Profile Image
    botanicals
    Asked on February 04, 2012 at 03:45 PM

    Hello there,

    It took me a while but I  like your form generator more and more.

    here is what I intend to do, please correct me if there is a smarter or more correct way.

    The form(s) links to :  :" <link type="text/css" rel="stylesheet" target="_blank" href="css/styles/form.css?v3.0.2410"/> "

     > first question : how is ?v3.0.241 used

    I intend to replace it with my own like this: " <link type="text/css" rel="stylesheet" target="_blank" href="css/styles/MyJforms.css/> "

     

    This file will be "global"  for all the forms I generate.

    Seems that it is "smartert than injecting css" on your site. Seems that I than can globally define the look and feel of all the form with one simple line replacemnt in the html file

     

    > second question: Any problem you see doing this?

     

    best regards

  • Profile Image
    mliz
    Answered on February 04, 2012 at 09:03 PM

    Uploading of your own stylesheet and editing the source code within the form builder is not possible. If you want to use your own stylesheet you will need to download the full source code and change the stylesheet links to point to the ones that will be uploaded on your server before adding it your webpage.

    The CSS file of JotForm contains all the class properties used for the form fields. It would be a good idea to download the css file of JotForm so that you have an idea on how it is applied to the forms.  

    To download the css files:

    1.  Go to Setup & Embed tab
    2.  Click Embed Form
    3.  Click Source
    4.  Click the download link for your form's source files then save it on your computer

     

    The down side of using the source code is that when you have changes done in the Form Builder your web page does not get updated with the updates so every time you make changes you will have to download the source code and update your website.

    Hope this information helps, if you have clarifications feel free to ask.

  • Profile Image
    idarktech
    Answered on February 04, 2012 at 09:17 PM

    How is ?v3.0.241 used

    CSS files are often cached by the browser for a lot longer than you might expect. This can often result in unexpected behaviour when you release a new version of your CSS file. Therefore, it is common practice to add a QueryString parameter to the URL for the CSS file. That way, the browser caches the CSS file with v1. When you release a new version of your css file you change the url's to v2 and the browser will be forced to download a new copy.

    You may also find this article helpful. This discussed about version on css link. http://stackoverflow.com/questions/3466989/what-does-appending-v-1-to-css-and-javascript-urls-in-link-and-script-tags-do

    If you have any other questions or concerns, please let us know. Thank you for using JotForm!

  • Profile Image
    botanicals
    Answered on February 05, 2012 at 03:45 AM

    Thanks a lot

    best regardsfrom a Jotform fan

  • Profile Image
    abajan
    Answered on February 05, 2012 at 05:39 AM

    On behalf of my colleagues, you're welcome. And thanks for being a fan! :)