• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Center tag makes elements disappear

New Here ,
Jun 19, 2023 Jun 19, 2023

Copy link to clipboard

Copied

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.

Views

80

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 19, 2023 Jun 19, 2023

Copy link to clipboard

Copied

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#

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 19, 2023 Jun 19, 2023

Copy link to clipboard

Copied

LATEST

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.

 

Nancy O'Shea— Product User, Community Expert & Moderator

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines