James Knight James Knight - 4 months ago 8
HTML Question

How to keep two divs next to each other?

I have 2 divs that are supposed to be next to each other. How should I do this WITHOUT USING CSS?

This is how the final result should look like.

_______ _______
| | | |
| div 1 | | div 2 |
|_______| |_______|

Answer
<table style="margin: auto">
    <tbody>
        <tr>
            <td><!--Your first box--></td>
            <td width="100px"></td><!--The space in between the divs-->
            <td><!--Your second box--></td>
        </tr>
    </tbody>
</table>