Cascading Style Sheets (CSS) are used to control the visual appearance of web pages. Custom CSS gives you advanced control over the appearance of your Online Actions forms, allowing for sophisticated design that matches your brand perfectly.
While we don't provide support to help you learn CSS coding, there are many online tutorials you can use to get you started if this is new for you. Alternatively, Bonterra's Design Services team is always happy to discuss design customizations. Please feel free to reach out to Paul Kittredge at paul.kittredge@bonterratech.com to schedule a conversation.
Step 1: Create your CSS file
-
Use a text editor to create a CSS file with your custom styles
-
Ensure your CSS targets the correct elements of the form
-
Save the file with a .css extension
-
Host the file on a publicly accessible server with HTTPS support
Step 2: Add custom CSS to your form
-
Create or edit an Online Actions form
-
On the Build Page step, scroll to the "Custom CSS" section
-
Enter the full URL to your hosted CSS file (must start with https://)
-
Click "Save" to apply the CSS file to your form
Step 3: Preview your form with custom CSS
-
Click the "Preview" button to see how your form looks with the custom CSS
-
Check that all elements are styled as expected
-
Test the form on different devices and browsers if possible
-
Make adjustments to your CSS file as needed and update the URL if you upload a new version
Step 4: Use custom CSS with Themes
-
If using a Theme, ensure it includes the {{CustomCss}} merge field:
<link href="{{CustomCss}}" rel="stylesheet"/>
-
Without this merge field, your custom CSS won't load when using a Theme
-
Add this code to your Theme's HTML in the <head> section
Step 5: Embed forms with custom styling
-
Publish your form with or without custom CSS
-
Click "Link & Embed" to get the embed code
-
Add the form to your website using the provided code
-
Your website's CSS will affect the embedded form
-
You can add additional CSS on your website to further style the embedded form
What else do you need help with?
