CSS Gradients
The easiest way to add a gradient as the background color of a row or column is to use the color gradient background feature built into the rows and columns. However, if you have a special gradient effect you want to use, for example from a gradient-generating tool, here are some tips.
Gradients can be variations of a single color:
![how-to-tips-gradients-1-65cb8992e2555811d347a591630fc16c how-to-tips-gradients-1-65cb8992e2555811d347a591630fc16c](https://support.dropfunnels.com/wp-content/uploads/2023/11/how-to-tips-gradients-1-65cb8992e2555811d347a591630fc16c.jpeg)
Or they can use multiple colors:
![how-to-tips-gradients-2-9bd0929f40e9115790824c6dc2532882 how-to-tips-gradients-2-9bd0929f40e9115790824c6dc2532882](https://support.dropfunnels.com/wp-content/uploads/2023/11/how-to-tips-gradients-2-9bd0929f40e9115790824c6dc2532882.jpeg)
Or they can even involve shapes. The following screenshot shows a preset radial gradient from gradientgenerator.com, with CSS you can copy.
![how-to-tips-gradients-3-71ac9f8abb221ac1c404fe86b001beca how-to-tips-gradients-3-71ac9f8abb221ac1c404fe86b001beca](https://support.dropfunnels.com/wp-content/uploads/2023/11/how-to-tips-gradients-3-71ac9f8abb221ac1c404fe86b001beca.jpeg)
No matter how involved the gradient, if you're using a tool that generates the CSS, the basic procedure to add the gradient to a row or column background is the same.
To add a CSS gradient as a row or column background in DropFunnels Editor:
- Get the CSS for your gradient.
- Add a custom CSS class to your row or column.
- Add the custom CSS for the gradient.
1. Get the CSS for your gradient
There are many gradient generators on the internet that generate CSS code. Here are just a few:
Once you've generated the gradient you want, copy the CSS and save it somewhere.
2. Add a custom CSS class to your row or column
Step 1: Open your row or column for editing and click the Advanced tab.
Step 2: Scroll to the CSS selectors section and enter a custom name in the Class field. (Do not use a period.)
It's a best practice to add a custom prefix to your class names to avoid conflict with other class names used by the theme and plugins. In this example, we'll use the class name kb-gradient
. Repeat this step for any other rows or columns that you want to have the same color gradient background.
Step 3: Click Save.
3. Add the custom CSS for the gradient
Copy and paste the CSS from the gradient generator and replace the class name in the first line with your own class name.
See this article about where to add custom CSS code.
As soon as you add your custom class name you should see the row or column on your page take on the background gradient color.