center modal

This commit is contained in:
Djeeberjr 2021-07-30 23:36:50 +02:00
parent ab20c0693c
commit 4d28da04a6

View File

@ -6,14 +6,18 @@
width: 100%; width: 100%;
height: 100%; height: 100%;
background-color: rgba(0,0,0,0.4); background-color: rgba(0,0,0,0.4);
display: flex;
justify-content: center;
align-items: center;
} }
.body{ .body{
background-color: #fefefe; background-color: #fefefe;
margin: 15% auto; /* 15% from the top and centered */ margin-left: auto;
margin-right: auto;
padding: 20px; padding: 20px;
border: 1px solid #888; border: 1px solid #888;
width: 80%; /* Could be more or less, depending on screen size */ width: 80%;
} }
.hidden{ .hidden{