naoru
February 9, 2015, 11:59pm
1
Hi there
i have a design in which i need to use a modal that doesn’t occupy the full height of the display
im using the following css
.modal{
margin-left:auto;
margin-right:auto;
overflow: visible !important;
width: 80% !important;
top:10%;
height:30%;
background-color:black;
border:2px solid white;
border-radius:10px;
}
but the height is getting ignored
anyway to achieve this?
Can you put together a codepen to show this?
naoru
February 11, 2015, 10:48pm
3
image is worth more than thusand word
on mobile screen resolutions i can’t find the way to make the modal window not to stretch all the way down.
i want it to wrap the contents plus another 20px or so
Don’t mind the !important
, codepen is weird like that.
So the modal has a min-height set on to it, so you just have to override that with min-height: initial;
naoru
February 13, 2015, 11:13pm
5
oh man i can’t believe i missed it…
Thanks