WordPress.org

Ready to get started?Download WordPress

Forums

Child Pages Shortcode
[resolved] Error when validating style.css for plugin and its solution. (2 posts)

  1. webmasterpro.bizz
    Member
    Posted 3 months ago #

    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://wordpress.org/plugins/child-pages-shortcode/

  2. Takayuki Miyauchi
    Member
    Plugin Author

    Posted 3 months ago #

    Oh ... I will fix soon.
    Thanks!

Reply

You must log in to post.

About this Plugin

About this Topic