I am trying to have just half of my div visible at the bottom of my page. I attempted using bottom:-100px
, margin-bottom:-100px
, and padding-bottom:-100px
, but none of these methods seem to be working.
Does anyone have a solution for this issue?
If you would like to view my JSFIDDLE, please click here: https://jsfiddle.net/cuxyrfh8/6/
div {
background: pink;
position: absolute;
height: 200px;
left: 0;
margin-left: auto;
margin-right: auto;
right: 0;
width: 400px;
border: 5px black solid;
bottom:-100px;
}