"We are revamping our Knowledge Base articles to serve you better. In case you find something unusual, do not panic. Reach out to our Support Team by submitting a ticket if you ever need some help.”

Gradient With CSS

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

Or they can use multiple colors:

how-to-tips-gradients-2-9bd0929f40e9115790824c6dc2532882

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

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.

Was this article helpful?

Related Articles

DF Black Trimmed

ANNOUNCEMENT:
Our Knowledge Base articles are undergoing a comprehensive overhaul to enhance your experience.

If you encounter any unexpected issues or irregularities, feel free to connect with our Support Team by submitting a support ticket for prompt assistance.
Join our Slack Workspace

Join the DropFunnels Slack Workspace and get access to the DropFunnels team, other DropFunnels members, twice-weekly support calls and more!

Join our Slack Workspace

Become A DropFunnels Wizard


Complete our Fast Start Training and learn everything you need to know to launch your first or next funnel.

From Lead Capture to Products, Courses to Blogs, this easy-to-follow training covers it all.

We’ll even give you $50 credit for completing the training!


Become A DropFunnels Wizard