Skip to content

Instantly share code, notes, and snippets.

@Pharap
Last active September 18, 2022 10:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pharap/cbf8802a6184687ca3d24a11dc67c14b to your computer and use it in GitHub Desktop.
Save Pharap/cbf8802a6184687ca3d24a11dc67c14b to your computer and use it in GitHub Desktop.
Dialogue Example
<html>
<head>
<style>
body
{
margin: 0;
padding: 0;
}
dialog
{
margin: auto;
padding: 0;
height: 90%;
width: 90%;
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
dialog > p
{
margin: 0;
padding: 0;
width: 256px;
height: 256px;
background-color: #AAAAAA;
}
@media screen and (min-width: 600px)
{
dialog > p
{
background-color: #AAFFAA;
}
}
</style>
</head>
<body>
<dialog open>
<p>Hello</p>
<p>Hello</p>
<p>Hello</p>
</dialog>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment