Jump to content

Recommended Posts

[code]<table width="1000" id="table">
<tr>
<th id="table2" width='140' scope='col'> Referansenr</th>
<th id="table2" width='140' scope='col'> Ankomst</th>
<th id="table2" width='140' scope='col'> Avreise</th>
<th id="table2" width='140' scope='col'> Navn    </th>
<th id="table2" width='140' scope='col'> Adresse</th>
<th id="table2" width='140' scope='col'> E-Post                  </th>
<th id="table2" width='140' scope='col'> Telefon</th>
<th id="table2" width='140' scope='col'> Lugar</th>
<th id="table2" width='140' scope='col'> Betaling</th>
<th id="table2" width='140' scope='col'> Pris</th>
<th id="table2" width='140' scope='col'> Betalt?</th>
</tr>
</table>


these are tables

Edited by marcusG
Link to comment
https://forums.phpfreaks.com/topic/270008-spacing-not-sure/#findComment-1388308
Share on other sites

Yes, many tables. One for each row, in fact. Which is the problem, and quite logically so if you think about it.

What you need to use is one table, for all of the rows. That way the browser knows that they are all connected, instead of a bunch of different and unrelated tables.

 

Also:

  • Drop the &nbsp entities, use CSS instead.
  • Use class instead of id, as only one instance of an ID is permitted.
  • Use CSS to define the width. It gives you a lot more control and a lot less code.
  • Add htmlspecialchars () to the output, to prevent XSS and other HTML injection attacks.
  • And, finally: Please read up a bit more on the HTML syntax, especially on how to use tables (just ignore the styling attributes, use CSS for that). For your own sake. ;)

Edited by Philip
Link to comment
https://forums.phpfreaks.com/topic/270008-spacing-not-sure/#findComment-1388311
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.