CSS overflow character not pushing down <div>

Posted by Uncle Toby on Stack Overflow See other posts from Stack Overflow or by Uncle Toby
Published on 2013-06-30T10:17:31Z Indexed on 2013/06/30 10:21 UTC
Read the original article Hit count: 230

Filed under:

I have a <div> called bigbox which contain a <div>called wrapper . The wrapper contain 2 <div> called textbox and checkbox. If the characters inside textbox overflow , it doesn't push the other wrapper below . How can I make the below wrapper go down ?

here is the jsfiddle : http://jsfiddle.net/WA63P/

enter image description here

 <html>
 <head>
<title>Page</title>
<script type="text/javascript" src="jquery-1.9.1.min.js"></script>

<style type="text/css">


.bigbox  {
    background-color: #F5E49C;
    color: #000;
    padding: 0 5px;
    width:280px;
    height:500px;
    position: absolute;
    text-align: center;content: "";display: block;clear: both;
}



.box   {

    background-color: #272822;
    color: #9C5A3C;
    height:100px;
    width:260px;
    margin-bottom: 10px;
    position: relative; top:10px;
}   
.textbox
{
    background-color: #FFFFFF;
    color: #272822;
    height:100px;
    width:160px;float:left;text-align: left

}   
.checkbox
{
background-color: #FFFFFF;
height:50px;
width:50px;
float:right;
d
}   

</style>



 <div class="bigbox">

 <div class="box"> 
  <div class="textbox">background background background background background background background background background background background background background background background background background background background background background background </div>
  <div class="checkbox"> </div>
  </div>


 <div class="box"> 
  <div class="textbox"> </div>
  <div class="checkbox"> </div>
  </div>

 </body>
 </html>

© Stack Overflow or respective owner

Related posts about css