Skip to content

Instantly share code, notes, and snippets.

@thiagolenz
Created April 21, 2022 23:29
Show Gist options
  • Select an option

  • Save thiagolenz/0696814b103a2cc54b4fa426a8efae34 to your computer and use it in GitHub Desktop.

Select an option

Save thiagolenz/0696814b103a2cc54b4fa426a8efae34 to your computer and use it in GitHub Desktop.
<html>
<head>
<style>
.parent {
display: flex;
justify-content: center;
align-items: center;
background-color: darkgrey;
width: 400px;
height: 400px;
}
.child {
width: 50px;
height: 50px;
background-color: darkblue;
}
</style>
</head>
<body>
<div class="parent">
<div class="child"></div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment