Home>Support>margin-bottom:px issue / CSS Invalid

margin-bottom:px issue / CSS Invalid

Hi,

How to get rid of margin-bottom css while it’s blank?
#pg-404-0 , #pg-404-1 , #pg-404-2 , #pg-404-3 { margin-bottom:px }

Even if I put the number, above blank code is inserted.
This is annoying.

Thank you for your support in advance.

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

  1. 3 years, 10 months ago Andrew Misplon
    Hi, I Work Here

    Hi Yoshi

    Thanks for reaching out.

    Agreed, it would be great to remove the bottom-margin declaration when the value is zero. Unfortunately, at this stage, it would potentially be disruptive to a lot of sites and layouts. If for example .so-panel { margin: 25px; } was being used in Custom CSS, the zero bottom margin value would be overriding the Custom CSS. If we removed the zero value the layout would change. Sorry we don’t have better news.

  2. 3 years, 10 months ago Yoshi

    Hi Andrew,

    Thank you for your reply.
    Well, margin-bottom issue is that it doesn’t provide any value.
    The value is still like .so-panel { margin-bottom: px; } . This is not Zero! It is empty, That is a problem.
    It should be .so-panel { margin-bottom: 0px; }
    I hope you can fix it ASAP.

  3. 3 years, 10 months ago Andrew Misplon
    Hi, I Work Here

    It should be zero, for example, please, see https://demo.siteorigin.com/corp/.

    #pg-31-3, #pg-31-4, #pg-31-5, #pg-31-6, #pl-31 .so-panel:last-child {
        margin-bottom: 0;
    }
    

    If you send a link to the page concerned, we’ll take a look. Thanks.

  4. 3 years, 10 months ago Yoshi

    Hi Andrew,
    Thank you for your support.
    https://www.awards-adf.jp/

    #pg-404-0,#pg-404-1,#pg-404-2,#pg-404-3,#pg-404-4,#pg-404-5,#pg-404-6,#pg-404-7,#pg-404-8,#pg-404-9{margin-bottom:px}

    I tried to fix it by the Visual mode, another problem is happened. It is not displayed.

    Thank you!

  5. 3 years, 10 months ago Andrew Misplon
    Hi, I Work Here

    Thanks for the link. Please, can you try a plugin conflict test? Temporarily deactivate all plugins not authored by SiteOrigin. Before running the test, clear your caching/optimization plugin. Is the result different with all non-SiteOrigin plugins deactivated?

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