Skip to main content
Alistair FIeld
Expert ⭐️
June 1, 2023
F.A.Q.

How to modify the margins of the HTML Widget

  • June 1, 2023
  • 0 replies
  • 124 views

By default HTML Widget adds margins. In this example I will focus on the top margin, but the principle is the same for all four sides.

 

You can remove / modify the margin size with Custom CSS.

/*Remove white space on top of HTML Widget */
.custom-html-widget-wrapper
{
margin-top: 0px !important;
 }

The !important rule will override ALL previous styling rules for that specific property on that element.

 

The is the code in the Custom CSS editor for you CC.

Now you can see the margin is removed.