Skip to content

Instantly share code, notes, and snippets.

@sergiks
Created July 20, 2025 08:45
Show Gist options
  • Save sergiks/25f7aedb6b5c6e8f88ce7ef99e01fa94 to your computer and use it in GitHub Desktop.
Save sergiks/25f7aedb6b5c6e8f88ce7ef99e01fa94 to your computer and use it in GitHub Desktop.
CSS-only "brick" (no entry) road sign — дорожный знак "кирпич" на CSS и HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CSS-only "brick" road sign</title>
<style>
.circle-brick {
width: 30px;
height: 30px;
align-items: center;
background-color: red;
border-radius: 50%;
display: flex;
justify-content: center;
}
.circle-brick:after {
content: "";
width: 66%;
height: 22%;
background-color: #fff;
border-radius: 1px;
}
</style>
</head>
<body>
<div class="circle-brick"></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment