Skip to content

Commit

Permalink
solved btn hovering issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Subashree-selvaraj committed Oct 11, 2024
1 parent 6dd3bac commit b4d954b
Showing 1 changed file with 28 additions and 9 deletions.
37 changes: 28 additions & 9 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,14 @@ button[type="submit"] {
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.3s ease; /* Add transition */
}



button[type="submit"]:hover {
background-color: #444;
transform: scale(1.1);
}


Expand Down Expand Up @@ -348,7 +352,8 @@ button {
}
#cart-btn
{
padding: 12px 14px;

margin-left: 20px;
}

button img {
Expand All @@ -360,25 +365,39 @@ button:hover img {
display: block;
}

#cart-btn:hover
{
width: 160px;
#cart-btn,
#buy-btn {
width: 150px;
height: 45px;
padding: 10px 0px;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
font-weight: bold;
transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
display: flex;
justify-content: center;
align-items: center;
justify-content: space-between;

padding: 10px;
white-space: nowrap;
flex-grow: 1;
}
#buy-btn:hover
{
#buy-btn:hover,
#cart-btn:hover {
width: 160px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px;
transform: scale(1.1);
transition: width 0.5s ease-in-out, background-color 0.5s ease-in-out, transform 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
}
.btn-section
{ display: inline-flex;
gap: 15px;


}

.col-1::after {
Expand Down

0 comments on commit b4d954b

Please sign in to comment.