1

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.

LIVE DEMO

Code


#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;
}
2
  • 2
    As your site may change over time, could you provide a jsfiddle - this will allow others who may have the same problem as you in the future to refer to the jsfiddle which will not be changed (a lot, as a website may be). Commented Jan 22, 2014 at 13:17
  • Cannot reproduce issue in Chrome 32 Commented Jan 22, 2014 at 13:22

1 Answer 1

1

Remove max-height: 30px; on the ID #yht.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.