How to override front.css file in RSForm!Pro

Since RSForm!Pro 1.51, the forms look and feel can be adjusted by overriding the front.css file.

In order to achieve this you will need to take the following steps:
  1. Head to media/com_rsform/css/
  2. Copy the front.css file
  3. Paste the file into the following location: /templates/your_template/css/com_rsform/
  4. Edit the newly copied front.css file in order to apply the override

Let's assume that your forms should have a specific background and your inputs should have a different border style

Achieving this will require performing the following steps:
  1. Create a copy of the front.css file as explained above
  2. Add the following style definition at the bottom of your file in order to change the background color:
    #userForm{
    background:#eeeeee;
    padding:10px;
    }

    Tip: Adding some padding to your form will create a better visual effect when using a different background color.

  3. For changing the border style you will have to search for the following style definition(~line 305):
    .formResponsive textarea, 
    .formResponsive input[type="text"],
    .formResponsive input[type="number"],
    .formResponsive input[type="email"],
    .formResponsive input[type="tel"],
    .formResponsive input[type="url"],
    .formResponsive input[type="password"] {
        background-color: #FFF;
        border: 1px solid #CCC;
        border-radius: 3px;
        box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.075) inset;
        transition: border 0.2s linear 0s, box-shadow 0.2s linear 0s;
    }
    

    and replace the border style with the following:

      border: 2px solid #4c9ed9;
    

    This will add a 2px wide blue border around your textboxes.

  4. Note that your dropdown menus won't have the same style as your textboxes. In order to change their border style you will have to search for the following style definition:
    .formResponsive select {
      width: 220px;
      border: 1px solid #bbb;
    }

    and add the same border style:

      border: 2px solid #4c9ed9;
    
  5. After performing the steps above, your form fields will look like in the following example:


9 persons found this article helpful.


Was this article helpful?

Yes No
Sorry about that

You Should Also Read

Creating a responsive, two-columns inline form HOT

How to create a multi-page form HOT

Dynamic Drop-down change form example

Create Tabbed Forms

Creating a Send me a copy scenario