Skip to content
Closed
Changes from all 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
15 changes: 12 additions & 3 deletions flex Property/new.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
flex: 1;
padding: 20px;
text-align: center;
transition: box-shadow 0.3s; /* Added transition for smoother effect */
transition: transform 0.3s ease, box-shadow 0.3s ease; /*more smoother transition*/
}

.section:nth-child(1) {
Expand All @@ -40,7 +40,7 @@
}

h1 {
color: #ffh;
color: #fff; /* valid white color */
}

p {
Expand All @@ -49,9 +49,18 @@

/* Added hover effect */
.section:hover {
box-shadow: 0 0 15px 5px rgba(256, 256, 256, 0.7);
box-shadow: 0 0 15px 5px rgba(255, 255, 255, 0.7); /*valid color code*/
transform: scale(1.2,1.2);
}
@media (max-width: 768px) {
.container {
flex-direction: column; /* ✅ stack vertically on small screens */
}
.section {
transform: none; /* prevent zoom issues on mobile */
}
}

</style>
</head>
<body>
Expand Down