Search code examples
htmlcssalignment

Offsetting a table cell


I have a 4x4 table of radiobuttons. In the first row (an extra row ABOVE the 4x4) I would like a button centered horizontally. I have tried colspan etc. but all still leave the radiobutton in a column like the others, and thus uncentered.


Solution

  • http://jsfiddle.net/EJbny/

    <table style='width:100%;' border=1>
    <tr>
        <td colspan=4 style='text-align:center;'><input type='button' value='hello'></td>