Skip to main content
Participant
Jun 19, 2023 2:24 PM UTC
Question

Center tag makes elements disappear

I have four media queries, three in which the center tag appears and wrks just fine. However, when checking the fourth one, the element with the center tag disappers completely. The query size is 1276-1920px, not sure if this information helps. Any comment or suggestion would be highly appreciated.

    This topic is closed to new replies. Start a new post to keep the conversation going.

    2 replies

    Nancy OShea
    Community Expert
    Community Expert
    Jun 20, 2023 1:08 AM UTC

    99% of problems are caused by coding errors.  Validate HTML and CSS with these online tools & fix reported errors

    HTML https://validator.w3.org/

    CSS https://jigsaw.w3.org/css-validator/

     

    Hope that helps.

     

    Translate
    Nancy O'Shea— Product User & Community Expert
    Community Expert
    Jun 19, 2023 2:36 PM UTC

    The center tag has been deprecated for some time. I would just change the center to a div and use the CSS styles to center. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/center#

    Translate