Reputation: 894
My site has a footer with content, but if you look on a bigger screen, or zoom out, it will flow out of the div.
#yht { //Footer container
width: 100%;
min-height: 20px;
max-height: 30px;
vertical-align: middle;
background: black;
text-align:center;
opacity: 0.7;
max-height: auto;
height: auto;
overflow: hidden;
}
#main:hover #yht span {
opacity: 1;
}
#yht span {
text-align:center;
position: relative;
display: block;
margin-top: auto;
margin-bottom: auto;
padding: 5px;
}
#yht2 { //Text ul
display: block;
height: auto;
max-height: auto;
margin-top: auto;
margin-bottom: auto;
}
#yht2 ul li {
font-size: 50px;
color: magenta;
overflow: hidden;
display: block;
margin-top: auto;
margin-bottom: auto;
}
Upvotes: 1
Views: 341