lundi 4 juillet 2016

How to place forms horizontal inside a td tag

I like to place buttons that links to diffrent urls (meaning I have to use one form per button so that the action can hold different urls). The problem is that the buttons appears vertical inside the td. I like to see them horizontal. Any suggestions? float:left and display:inline-block in the td tag doesn't work.

<table><tr>
  <td>

    <form action = "page1.html">
      <button type="submit" name="btn1">btn1<button>
    </form>

    <form action = "page2.html">
      <button type="submit" name="btn2">btn2<button>
    </form>

  </td>
</tr>
</table>

Aucun commentaire:

Enregistrer un commentaire