• Resolved Pascal

    (@pascal183)


    Hi,
    I’m running the Nu Html Checker and it gives some errors

    •  Error: CSS: margin: "0 0 1em 0" is not a margin value.
    From line 32, column 2143; to line 32, column 2153
    le{margin:"0 0 1em 0"}.wp-b
    •  Error: CSS: --responsive--aligndefault-width: The types are incompatible.
    At line 75, column 113
    •  Error: CSS: --responsive--aligndefault-width: The types are incompatible.
    At line 80, column 113
    •  Error: CSS: --responsive--alignwide-width: The types are incompatible.
    At line 161, column 110
    •  Error: CSS: max-width: The types are incompatible.

    I have no idea how the solve this.
    The page is almost empty…

    Options for Twenty Twenty-One plugin is installed

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Kathryn Presner

    (@zoonini)

    Heya @pascal183 – unless you’re seeing display issues, I would not worry about it. I ran the Twenty Twenty-One demo site through the same validator and did not get the same errors, so it’s likely something specific to your site.

    I find HTML validators mostly useful for pinpointing syntax errors when you are trying to diagnose a problem, but otherwise they have limitations and are not that useful. Even the tool itself calls itself “experimental.”

    Thread Starter Pascal

    (@pascal183)

    Hi @zoonini,
    Thanks for your quick reply.
    What I understand is that if I don’t see issue I can leave the site like this.
    But, I’ve read here https://wordpress.org/support/article/search-engine-optimization/ that’s it is important to have a clean code for the referencing:
    Good, Clean Code
    Make sure your site’s code validates. Errors in your code may prevent a search engine from moving through the site successfully.

    Do you think such error could generate issue for the referencing?

    Moderator Kathryn Presner

    (@zoonini)

    CSS syntax errors and warnings like the ones you provided are negligible and I don’t see them having any effect on a search engine’s ability to index your site. What might actually cause problems are things like HTML errors – and even then, it would depend on what the specific errors are.

    I suggest you monitor Google Search Console regularly, you will get notifications there if Google’s crawler runs into any actual trouble indexing your site, and then you can take action as needed.

    Thread Starter Pascal

    (@pascal183)

    thanks 🙂

    Moderator Kathryn Presner

    (@zoonini)

    Avec plaisir 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Twenty Twenty One / Error: CSS’ is closed to new replies.