Niekas Niekas Niekas Niekas - 3 months ago 9
CSS Question

Footer width sets too much

When i make position:absolute, width:100% footer sets too much width for my screen, here is my code:

<p class="footer" style="font-weight:bold;color:#D9D9D9;border: 15px solid #272727;letter-spacing:1pt;word-spacing:2pt;font-size:10px;text-align:center;font-family:courier new, courier, monospace;line-height:0;"> Text    </p>


css:

.footer{
position: absolute;
width:100%;
min-width:100%;
text-align: center;
bottom: 0px;
}


and i want to make him stay on page bottom even if nothing writed in because in other pages footers goes in middle of the screen

Answer

https://jsfiddle.net/vrd4nfL4/3/

Try with overflow:hidden

body{
  overflow:hidden;
}
Comments