Hi.
I have the following setup:andCode:<style type="text/css"> .clearfix:after { content: "."; display: block; clear: both; visibility: hidden; line-height: 0; height: 0; } .clearfix { display: inline-block; } html[xmlns] .clearfix { display: block; } * html .clearfix { height: 1%; } body { font-family:arial; font-size:12px; } .wrapper { width: 200px; border:1px solid #000; } .one, .two { float: left; width: 100px; height: 100px; } .one {background-color: red} .two {background-color: green} </style>I would like to check if div two is empty, and if it is, the div one should stretch to full width. How is that possible with jQuery?HTML Code:<div class="wrapper clearfix"> <div class="one"></div> <div class="two"></div> </div>


Reply With Quote

Bookmarks