How do I remove the blue edge that appears around buttons when they are pressed in Webflow?

Published on
September 22, 2023

To remove the blue edge that appears around buttons when they are pressed in Webflow, you can use CSS to modify the button's focus state.

Here are the steps to achieve this:

  1. Select the button element you want to modify in the Webflow designer.
  2. In the Styles panel, click on the "+" icon to add a new style to the selected element.
  3. Enter a class name for the new style. For example, you can name it "no-outline".
  4. With the new class selected, click on the "Edit" button next to the class name in the Styles panel.
  5. In the Class Editor, click on the "Focus" state tab.
  6. Scroll down to the "Border" section and click on the pen icon to edit the border properties.
  7. Set the border color and width to match the button's background color, effectively making the outline invisible.
  8. Click "Save" to apply the changes.

Alternatively, you can also accomplish this by adding custom CSS to your project. Follow these steps:

  1. Select the button element you want to modify in the Webflow designer.
  2. In the Styles panel, click on the HTML tag icon next to the element name.
  3. In the dropdown menu, select "Custom Code."
  4. Go to the "Head" section of your site's custom code settings.
  5. Add the following CSS code:
.no-outline:focus {   outline: none;   /* Add any additional styles you want for the button's focus state */}
  1. Click "Save & Close" to apply the changes.

By removing the default outline style and adding your own custom styles, you can successfully remove the blue edge that appears around buttons when they are pressed in Webflow.

Additional Questions:

  1. How can I remove the focus outline on other elements in Webflow?
  2. Can I change the color of the focus outline in Webflow?
  3. Can I animate the button's focus state in Webflow?