There are only 3 lines of text in the div body. The background color was filled only up to three lines of text.
Since I wanted the color to fill 100% of the browser vertical, I just set the CSS html and body properties to 100% . But now a vertical scrollbar appears. How can I hide / delete it?
I tried overflow:hidden; for html as well as for div properties, but no luck. Using Firefox.
CSS
* { margin:0; padding:0; } html,body { width:100%; height:100%; } .logodiv { width:100%; background-color:#243640; height:40px; color:#FF1442; } .content { background: -moz-radial-gradient(circle, #1a82f7, #2F2727); width:100%; height:100%; overflow: hidden; }
HTML:
<div class="logodiv"> ITEMS LIST </div> <div class="content"> line1<br> line2<br> line3<br> </div>
source share