Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fixed issue of css property#49

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
mohittarachandani12 wants to merge1 commit intosahandghavidel:main
base:main
Choose a base branch
Loading
frommohittarachandani12:fix_issues
Open
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletionprojects/digital-clock/style.css
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -21,11 +21,16 @@ h2 {

.clock {
display: flex;
justify-content: center;
align-items: center;
gap: 10px; /* Add spacing between each clock unit */
}

.clock div {
margin: 5px;
position: relative;
display: flex;
flex-direction: column; /* Ensures each unit stacks vertically */
align-items: center; /* Aligns text horizontally */
}

.clock span {
Expand All@@ -42,12 +47,14 @@ h2 {
}

.clock .text {
width: 100%; /* Ensures it matches the span width */
height: 30px;
font-size: 10px;
text-transform: uppercase;
letter-spacing: 2px;
background: darkblue;
opacity: 0.8;
text-align: center; /* Centers the label text */
}

.clock #ampm {
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp