Home>Support>Delete margin between two stacking widgets

Delete margin between two stacking widgets

Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

Hello, I have two stacking widgets in a row.
The top one and the bottom om one needs to be back on back. To do that I used something like:

div#panel-1518-1-1-0 {
    margin-bottom: 0px !important;
}

But I will need to do this on a lit of pages so the idea to call a unique idea every time wont work for my client to add this either. I have tried the custom class on the widget (which would be the best way), but I cant catch the margin-bottom with that it seems.

Do you have a simple solution for be – that would be very much appreciated.

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 4 months ago Alex S
    Hi, I Work Here

    Hi Hectornado,

    Please disregard my previous reply. Is the zero margin only appliable for certain widgets, or all widgets? Could you tell me more about the types of widgets you intend to have this applied to.

  2. 9 years, 4 months ago Private Message - hectornado

    This is a private message.

  3. 9 years, 4 months ago Alex S
    Hi, I Work Here

    Hi Hectornado,

    This is a tricky one. If you know this will always appear on the last in that row you could set a cell class. Click edit row, go to the row styles sidebar and open the attributes grouping. Then input a cell class name that you feel is relevant. Click done and save your post.

    Then target the widget and make use of last-child. It’s not ideal, but it’s gracefully degrade so it’s not too important if the browser doesn’t understand it.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More