Skip to content

Instantly share code, notes, and snippets.

@goish135
Created October 31, 2023 14:56
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 goish135/01c1e29b03e8ed6dcc45035de5cbe7a3 to your computer and use it in GitHub Desktop.
Save goish135/01c1e29b03e8ed6dcc45035de5cbe7a3 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="container">
<div class="dot">
<span class="word">PASS</span>
</div>
<div class="dot2">
<span class="word">FAIL</span>
</div>
</div>
</body>
</html>
.dot {
width: 30px;
height: 30px;
background-color: #a0d911; /* Change the color to your preference */
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); /* Optional shadow effect */
margin-right: 10px
}
.dot2 {
width: 30px;
height: 30px;
background-color: #f5222d; /* Change the color to your preference */
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); /* Optional shadow effect */
}
.container {
display: flex;
/* 添加任何其他必要的样式 */
}
.word {
color: #333; /* Change the text color to your preference */
font-size: 16px; /* Change the font size to your preference */
font-weight: bold; /* Optional font weight */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment