• Resolved webmasterpro.bizz

    (@webmasterprobizz)


    Hi All,

    I am using this plugin on my website. While validating the CSS, I found that errors are there. One of the errors identified by the W3C CSS validator was:

    Error Mssage: .child_pages .post_content h4 Value Error : margin-top Too many values or values are not recognized : 0.5em 0 0 0

    To correct the above error follow the steps mentioned below:

    1. Go to the plugin CSS file.

    2. Look for a piece of code shown below:

    .child_pages .post_content h4 {
    font-weight: bolder;
    margin-top: .5em 0 0 0;
    font-size: 14px;
    line-height: 1.2em;
    }

    3. The margin-top takes a single value but here its having 4 values.

    4. Edit the margin-top statement so that the above piece of code looks as shown below:

    .child_pages .post_content h4 {
    font-weight: bolder;
    margin-top: .5em;
    font-size: 14px;
    line-height: 1.2em;
    }

    5. Run your website CSS through the validator. The error is now gone.

    Hope this helps.

    https://www.ads-software.com/plugins/child-pages-shortcode/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Error when validating style.css for plugin and its solution.’ is closed to new replies.