...

View Full Version : League table



Scatty
01-13-2008, 03:48 PM
Hello everyone!
I would like to construct a football league table like this: Here! (http://news.bbc.co.uk/sport1/hi/football/eng_prem/table/default.stm). Just want some help starting off Please.
Thanks all

AoR Zeta
01-13-2008, 04:03 PM
<table>
<tr>
<th>Team</th>
<th>P</th>
<th>W</th>
<th>D</th>
<th>L</th>
<th>F</th>
<th>A</th>
<th>W</th>
<th>D</th>
<th>L</th>
<th>F</th>
<th>A</th>
<th>GD</th>
<th>PTS</th>
</tr>
<tr>
<td>Manchester United</td>
<td>22</td>
<td>11</td>
<td>1</td>
<td>0</td>
<td>29</td>
<td>3</td>
<td>5</td>
<td>2</td>
<td>3</td>
<td>15</td>
<td>8</td>
<td>33</td>
<td>51</td>
</tr>
</table>


There's some HTML to get you started. :P

AoR Zeta
01-13-2008, 04:07 PM
If you want to change the way it looks you'll need to use CSS (http://www.w3schools.com/css/default.asp).

If you want an easy way to change the data in the table, or for it to update automatically you'll need to learn/use ASP/PHP or another server-side programming language.

Have fun... if you have other questions, ask away.

Scatty
01-13-2008, 04:35 PM
Hi AoR Zeta, big thanks for the rapid reply but is there a way to construct the league table using CSS and without using HTML tables?. Thanks

VIPStephan
01-13-2008, 04:38 PM
Hi AoR Zeta, big thanks for the rapid reply but is there a way to construct the league table using CSS and without using HTML tables?. Thanks

What’s the point? You are using the term table to refer to a table so why don’t you want to use a table then when it’s perfectly made for that purpose (after all, that’s why it’s called table, isn’t it?) and the only correct thing to use semantically?

AoR Zeta
01-13-2008, 04:46 PM
It is possible to do it without using tables, but tables aren't all bad despite what you have read. They shouldn't be used for layout, but this isn't layout it's tabular data. Tables are designed for tabular data hence it's ok to use tables for this.

Scatty
01-13-2008, 06:06 PM
Thanks for the replies and putting me on the right track both.Cheers

AoR Zeta
01-13-2008, 08:54 PM
No problem. If you have any more questions, just ask.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum