Skip to content

Commit

Permalink
Fixed Position for Popup
Browse files Browse the repository at this point in the history
  • Loading branch information
nouman17610 committed Jul 29, 2023
1 parent 4c29aa3 commit b4ae4ff
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,22 +48,22 @@
}

.modal {
position: relative;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) scale(0);
transition: 200ms ease-in-out;
position: fixed;
top: 5%;
left: 5%;
/** transform: translate(-50%, -50%) scale(0);
transition: 200ms ease-in-out;**/
border: 1px solid black;
border-radius: 10px;
z-index: 10;
background-color: white;
width: 89%;
width: 80%;
padding: 15px;
display: none;
}

.modal.active {
transform: translate(-50%, -50%) scale(1);
/** transform: translate(-50%, -50%) scale(1);**/
display: block;
}

Expand Down

0 comments on commit b4ae4ff

Please sign in to comment.