Skip to content

How to use "hidden" attribute with "display" property #134

@MortezaMirmojarabian

Description

@MortezaMirmojarabian

Dear Monica,

Regarding your article, if you have to use the HTML hidden attribute with the CSS display property together, this is the right way to do it:

  <style>
    div:not([hidden]) { display: flex; }
  </style>
  <div hidden>
      lol guess who's still hidden
      hint: it's this thing
  </div>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions