css - Content DIV hidden by footer -
i've noticed when have long text on web page can not see full text when scrolling down max. in example http://jsfiddle.net/grek/yybe5/ looks end of paragraph hidden (behind footer?). how can fix , have text zone (div content-right) stop footer begins? many thanks
css:
@charset"utf-8"; /* css document */ html, body { padding: 0; margin: 0; height: 100%; font-family: tahoma, geneva, sans-serif; background: rgb(255,255,255); /* old browsers */ /* ie9 svg, needs conditional override of 'filter' 'none' */ background: url(data:image/svg+xml;base64,pd94bwwgdmvyc2lvbj0ims4wiia/pgo8c3znihhtbg5zpsjodhrwoi8vd3d3lnczlm9yzy8ymdawl3n2zyigd2lkdgg9ijewmcuiighlawdodd0imtawjsigdmlld0jved0imcawidegmsigchjlc2vydmvbc3bly3rsyxrpbz0ibm9uzsi+ciagphjhzglhbedyywrpzw50iglkpsjncmfklxvjz2ctz2vuzxjhdgvkiibncmfkawvudfvuaxrzpsj1c2vyu3bhy2vpblvzzsigy3g9ijuwjsigy3k9ijuwjsigcj0inzulij4kicagidxzdg9wig9mznnldd0imcuiihn0b3aty29sb3i9iinmzmzmzmyiihn0b3atb3bhy2l0et0imsivpgogicagphn0b3agb2zmc2v0psi1myuiihn0b3aty29sb3i9iinmnmy2zjyiihn0b3atb3bhy2l0et0imsivpgogicagphn0b3agb2zmc2v0psixmdaliibzdg9wlwnvbg9ypsijzjdmn2y3iibzdg9wlw9wywnpdhk9ijeilz4kica8l3jhzglhbedyywrpzw50pgogidxyzwn0ihg9ii01mciget0iltuwiib3awr0ad0imtaxiibozwlnahq9ijewmsigzmlsbd0idxjskcnncmfklxvjz2ctz2vuzxjhdgvkksiglz4kpc9zdmc+); background: -moz-radial-gradient(center, ellipse cover, rgba(255,255,255,1) 0%, rgba(246,246,246,1) 53%, rgba(247,247,247,1) 100%); /* ff3.6+ */ background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, rgba(255,255,255,1)), color-stop(53%, rgba(246,246,246,1)), color-stop(100%, rgba(247,247,247,1))); /* chrome,safari4+ */ background: -webkit-radial-gradient(center, ellipse cover, rgba(255,255,255,1) 0%, rgba(246,246,246,1) 53%, rgba(247,247,247,1) 100%); /* chrome10+,safari5.1+ */ background: -o-radial-gradient(center, ellipse cover, rgba(255,255,255,1) 0%, rgba(246,246,246,1) 53%, rgba(247,247,247,1) 100%); /* opera 12+ */ background: -ms-radial-gradient(center, ellipse cover, rgba(255,255,255,1) 0%, rgba(246,246,246,1) 53%, rgba(247,247,247,1) 100%); /* ie10+ */ background: radial-gradient(ellipse @ center, rgba(255,255,255,1) 0%, rgba(246,246,246,1) 53%, rgba(247,247,247,1) 100%); /* w3c */ filter: progid:dximagetransform.microsoft.gradient( startcolorstr='#ffffff', endcolorstr='#f7f7f7', gradienttype=1 ); /* ie6-8 fallback on horizontal gradient */ } #header { width: 100%; height: 60px; border-top: solid 4px #00539e; } #logo { position: absolute; left: 20px; top: 35px; color: #000; font-size: 20px; } #header-text { width: 400px; position: absolute; top: 70px; left: 20px; font-size: 12px; font-weight: 300; color: #333; } /* mainmenu */ #mainmenu { width: 100%; margin-right: 20px; /* min-height: 180px; */ padding-bottom: 20px; margin-top: -52px; /* padding-top: -42px; */ overflow: hidden; } #mainmenu ul { list-style: none; margin: 0; float: right; color: #fff; } #mainmenu ul li { display: inline-block; float: left; width: 140px; line-height: 18px; } #mainmenu>ul>li { margin-left: 20px; } #mainmenu ul li { font-size: 12px; display: block; text-decoration: none; } #mainmenu ul li a, #mainmenu ul ul:hover li { color: #333; padding-left: 4px; letter-spacing: 1px; -moz-transition-property: all, -moz-transform; -moz-transition-duration: .4s, .4s, .4s, .4s; -moz-transition-timing-function: ease-out, ease-in, linear, ease-in-out; -ms-transition-property: all, -ms-transform; -ms-transition-duration: .4s, .4s, .4s, .4s; -ms-transition-timing-function: ease-out, ease-in, linear, ease-in-out; -o-transition-property: all, -o-transform; -o-transition-duration: .4s, .4s, .4s, .4s; -o-transition-timing-function: ease-out, ease-in, linear, ease-in-out; -webkit-transition-property: all, -webkit-transform; -webkit-transition-duration: .4s, .4s, .4s, .4s; -webkit-transition-timing-function: ease-out, ease-in, linear, ease-in-out; transition-property: all, transform; transition-duration: .4s, .4s, .4s, .4s; transition-timing-function: ease-out, ease-in, linear, ease-in-out; } #mainmenu ul ul li a:hover, #mainmenu ul ul li.current-menu-item { color: #005ebc; -moz-transition-property: all, -moz-transform; -moz-transition-duration: .4s, .4s, .4s, .4s; -moz-transition-timing-function: ease-out, ease-in, linear, ease-in-out; -ms-transition-property: all, -ms-transform; -ms-transition-duration: .4s, .4s, .4s, .4s; -ms-transition-timing-function: ease-out, ease-in, linear, ease-in-out; -o-transition-property: all, -o-transform; -o-transition-duration: .4s, .4s, .4s, .4s; -o-transition-timing-function: ease-out, ease-in, linear, ease-in-out; -webkit-transition-property: all, -webkit-transform; -webkit-transition-duration: .4s, .4s, .4s, .4s; -webkit-transition-timing-function: ease-out, ease-in, linear, ease-in-out; transition-property: all, transform; transition-duration: .4s, .4s, .4s, .4s; transition-timing-function: ease-out, ease-in, linear, ease-in-out; } p { font-size: 13px; color: #333; font-weight: 300; } h1 { font-size: 30px; letter-spacing: 1px; color: #0064c5;/* display: inline-block; */ margin-bottom: 0; } h2 { font-size: 22px; letter-spacing: 1px; color: #bbb;/* display: inline-block; */ margin-bottom: 0; } h5 { text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; padding-left: 4px; font-size: 11px; border-bottom: 1px dotted #666; background: rgb(29,115,196); /* old browsers */ /* ie9 svg, needs conditional override of 'filter' 'none' */ background: url(data:image/svg+xml;base64,pd94bwwgdmvyc2lvbj0ims4wiia/pgo8c3znihhtbg5zpsjodhrwoi8vd3d3lnczlm9yzy8ymdawl3n2zyigd2lkdgg9ijewmcuiighlawdodd0imtawjsigdmlld0jved0imcawidegmsigchjlc2vydmvbc3bly3rsyxrpbz0ibm9uzsi+ciagpgxpbmvhckdyywrpzw50iglkpsjncmfklxvjz2ctz2vuzxjhdgvkiibncmfkawvudfvuaxrzpsj1c2vyu3bhy2vpblvzzsigede9ijaliib5mt0imcuiihgypsiwjsigeti9ijewmcuipgogicagphn0b3agb2zmc2v0psiwjsigc3rvcc1jb2xvcj0iizfknznjncigc3rvcc1vcgfjaxr5psixii8+ciagica8c3rvccbvzmzzzxq9ijewmcuiihn0b3aty29sb3i9iimwmdy0yzuiihn0b3atb3bhy2l0et0imsivpgogidwvbgluzwfyr3jhzgllbnq+ciagphjly3qged0imciget0imcigd2lkdgg9ijeiighlawdodd0imsigzmlsbd0idxjskcnncmfklxvjz2ctz2vuzxjhdgvkksiglz4kpc9zdmc+); background: -moz-linear-gradient(top, rgba(29,115,196,1) 0%, rgba(0,100,197,1) 100%); /* ff3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(29,115,196,1)), color-stop(100%, rgba(0,100,197,1))); /* chrome,safari4+ */ background: -webkit-linear-gradient(top, rgba(29,115,196,1) 0%, rgba(0,100,197,1) 100%); /* chrome10+,safari5.1+ */ background: -o-linear-gradient(top, rgba(29,115,196,1) 0%, rgba(0,100,197,1) 100%); /* opera 11.10+ */ background: -ms-linear-gradient(top, rgba(29,115,196,1) 0%, rgba(0,100,197,1) 100%); /* ie10+ */ background: linear-gradient(to bottom, rgba(29,115,196,1) 0%, rgba(0,100,197,1) 100%); /* w3c */ filter: progid:dximagetransform.microsoft.gradient( startcolorstr='#1d73c4', endcolorstr='#0064c5', gradienttype=0 ); /* ie6-8 */ } div#content-left { float: left; width: 40%; } div#content-headline { float: right; width: 55%; padding-right: 50px; overflow: auto; } div#content-right { float: right; width: 55%; max-height: 60%; padding-right: 50px; } div#content-center { overflow: hidden; } /* footer */ #main_footer { clear:both; position: fixed; width:100%; background: #cfc8c0; height: 46px; overflow: hidden; display: block; bottom:0; } #main_footer #lien_hot_news { background: #e14242 url(pics/hot_news.gif) 50% 0 no-repeat; color: #fff; font: italic normal 24px georgia, serif; text-decoration:none; height: 38px; width: 145px; padding-top: 8px; display: block; text-align: center; float: left; } #main_footer #lien_hot_news:hover { background-color: #e92c26; } #main_footer #dernier_tweet { float: left; margin-left: 11px; margin-top: 11px; background: #fff url(pics/dernier_tweet_gauche.gif) 0 0 no-repeat; position: relative; } #main_footer #dernier_tweet .lien_twitter { position: absolute; top: 0; left: 0; width: 30px; height: 24px; display: block; } #main_footer #dernier_tweet .inner { max-width: 550px; background: url(../images/picto/dernier_tweet_droite.gif) right 0 no-repeat; padding: 4px 15px 5px 53px; height: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } #main_footer #dernier_tweet { color: #75716c; } #main_footer #dernier_tweet a:hover { color: #444; } #main_footer #dernier_tweet .last_tweet { overflow: hidden; } #main_footer .autres_liens { position: absolute; right: 12px; top: 9px; font: italic normal 15px georgia, serif; color: #95897c; } #main_footer .autres_liens .label { float: left; padding-right: 3px; padding-top: 5px; } #main_footer .autres_liens { float: left; display: block; margin-left: 5px; } #main_footer .autres_liens img { width: 28px; height: 28px; display: block; }
remove max height
, put padding-bottom: 42px
div#content-right { float: right; width: 55%; padding-right: 50px; padding-bottom: 42px; }
check
Comments
Post a Comment