How Do You Add a Shadow to Text in Webflow?

Adding a shadow to text can be a great way to add depth and visual interest to your website. In this tutorial, we’ll explore how you can easily add a shadow to text in Webflow. Let’s get started!

Step 1: Create a Text Element

To add a shadow to your text, you first need to have some text on your page. Let’s create a paragraph element using the <p> tag:

<p>This is my text</p>

Step 2: Add the Shadow

Now that we have our text element, let’s add the shadow effect. We can achieve this by using CSS properties. In Webflow, you can easily add custom CSS styles to any element.

    p {
        text-shadow: 2px 2px 4px rgba(0,0,0,0.5);

The text-shadow property takes four values:

  • X-offset: This specifies how far the shadow should be offset horizontally from the text.
  • Y-offset: This specifies how far the shadow should be offset vertically from the text.
  • Blur radius: This determines how blurry or sharp the edges of the shadow should be.
  • Color: This sets the color of the shadow. You can use either named colors or specify it using RGB or RGBA values.

In our example, we’re applying a shadow with an X and Y offset of 2 pixels, a blur radius of 4 pixels, and a semi-transparent black color.

Step 3: Apply the Style

Now that we have our custom CSS, let’s apply it to our text element. In Webflow, you can add custom CSS styles directly to any element by using the “Custom Code” option under the element’s settings.

Simply copy the CSS code we defined earlier and paste it into the “Custom Code” section of your text element in Webflow. Save your changes, and you should see the shadow applied to your text immediately.


Adding a shadow to text in Webflow is as simple as applying a few lines of custom CSS. By using the text-shadow property, you can easily create visually engaging text effects that will make your website stand out.

Experiment with different values for the X and Y offsets, blur radius, and colors to achieve different shadow effects. Don’t be afraid to get creative!

I hope this tutorial has been helpful in showing you how to add shadows to text in Webflow. Now go ahead and give it a try on your own projects!