Skip to content

Instantly share code, notes, and snippets.

@adipginting
Last active September 9, 2025 00:08
Show Gist options
  • Select an option

  • Save adipginting/ad7af81d4f3248016e3c9858019a2682 to your computer and use it in GitHub Desktop.

Select an option

Save adipginting/ad7af81d4f3248016e3c9858019a2682 to your computer and use it in GitHub Desktop.
Anonymous text inside flex container
<html>
<head>
<style>
:root {
--radius-md: 8px;
}
</style>
</head>
<body>
<div
style="
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
row-gap: 10px;
"
>
<div
style="
background-color: lightblue;
border: 2px solid black;
border-radius: var(--radius-md);
"
>
Flex item
</div>
Anonymous text
<div
style="
background-color: lightblue;
border: 2px solid black;
border-radius: var(--radius-md);
"
>
Flex item
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment