bobbieprague
New Member
I'm struggling with one issue: have a table cell and button inside it. After I float this button, apart from moving to left/right the vertical position also changes - in particular the floated button moves to the top of the line. For instance:\[code\] <table style="width: 100%"> <tr> <td style="background-color: green;"> <select style="height: 100px;"> <option>Option 1</option> </select> <button>One</button> <button>One</button> <button style="float: right">Two</button> </td> </tr> <tr> <td style="background-color: red;"> <select> <option>Option 1</option> </select> <button>One</button> <button>One</button> <button style="float: right">Two</button> </td> </tr> </table>\[/code\]http://jsfiddle.net/qS6gh/1/Important bit is : height: 100px. If I play around with this value, button is always aligned with the select control. But floated buttons always lands in the top fight corner of the line. Why is that? How can I force floated element to align with other? Basically my goal is to have button element in the right corner of table cell.