Created
February 12, 2023 05:30
-
-
Save enlineaweb/fbb35fa9ff18d7f83e10b86743802bf0 to your computer and use it in GitHub Desktop.
Basic <dialog>
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dialog id="dialog"> | |
<form method="dialog"> | |
<p>Hi, I'm a dialog.</p> | |
<button>OK</button> | |
</form> | |
</dialog> | |
<button onclick="dialog.showModal()">Open Dialog</button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html { | |
block-size: 100%; | |
color-scheme: dark light; | |
} | |
body { | |
min-block-size: 100%; | |
font-family: system-ui, sans-serif; | |
display: grid; | |
place-content: center; | |
margin: 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment