Home  >  Q&A  >  body text

How to align text in HTML to align with each other?

I'm trying to create this for my current code, how do I do it? Here is a price calculator, I need an example before I start coding [1]: https://i.stack.imgur.com/2xE4f.png

<div class="grid-item">
        <thead>
          <td>App-Benutzer</td><br>
          <td>pro 7,50€</td><br>
          <td>Backend-Benutzer</td><br>
          <td>pro 35,50€</td><br>
        </thead>
        <hr>
        <span class='summe'>0.00</span><br>
        </div>

P粉481366803P粉481366803375 days ago519

reply all(1)I'll reply

  • P粉256487077

    P粉2564870772023-09-14 18:35:41

    Try the code below. You can create your details as a form

    <!DOCTYPE html>
    <html>
    <style>`
    table, th, td {
      border:1px solid black;
    }
    </style>
    <body>
    <table style="width:100%">
      <tr>
        <td>App-Benutzer
        </td>
        <td>75,00€</td>
      </tr>
      <tr>
        <td>Backend-Benutzer</td>
        <td>175,00€</td>
      </tr>
    </table>
    </body>
    </html>

    reply
    0
  • Cancelreply