Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-13-2008, 03:48 PM   PM User | #1
Scatty
New to the CF scene

 
Join Date: Jan 2008
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Scatty is an unknown quantity at this point
League table

Hello everyone!
I would like to construct a football league table like this: Here!. Just want some help starting off Please.
Thanks all
Scatty is offline   Reply With Quote
Old 01-13-2008, 04:03 PM   PM User | #2
AoR Zeta
New Coder

 
Join Date: Jan 2008
Posts: 42
Thanks: 4
Thanked 4 Times in 4 Posts
AoR Zeta is an unknown quantity at this point
Code:
<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

Last edited by AoR Zeta; 01-13-2008 at 04:05 PM..
AoR Zeta is offline   Reply With Quote
Old 01-13-2008, 04:07 PM   PM User | #3
AoR Zeta
New Coder

 
Join Date: Jan 2008
Posts: 42
Thanks: 4
Thanked 4 Times in 4 Posts
AoR Zeta is an unknown quantity at this point
If you want to change the way it looks you'll need to use CSS.

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.

Last edited by AoR Zeta; 01-13-2008 at 04:07 PM.. Reason: This was meant to be an edit to my previous post. Whoops...
AoR Zeta is offline   Reply With Quote
Old 01-13-2008, 04:35 PM   PM User | #4
Scatty
New to the CF scene

 
Join Date: Jan 2008
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Scatty is an unknown quantity at this point
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
Scatty is offline   Reply With Quote
Old 01-13-2008, 04:38 PM   PM User | #5
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,594
Thanks: 5
Thanked 865 Times in 842 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
Quote:
Originally Posted by Scatty View Post
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?
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Old 01-13-2008, 04:46 PM   PM User | #6
AoR Zeta
New Coder

 
Join Date: Jan 2008
Posts: 42
Thanks: 4
Thanked 4 Times in 4 Posts
AoR Zeta is an unknown quantity at this point
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.
AoR Zeta is offline   Reply With Quote
Old 01-13-2008, 06:06 PM   PM User | #7
Scatty
New to the CF scene

 
Join Date: Jan 2008
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Scatty is an unknown quantity at this point
Thanks for the replies and putting me on the right track both.Cheers
Scatty is offline   Reply With Quote
Old 01-13-2008, 08:54 PM   PM User | #8
AoR Zeta
New Coder

 
Join Date: Jan 2008
Posts: 42
Thanks: 4
Thanked 4 Times in 4 Posts
AoR Zeta is an unknown quantity at this point
No problem. If you have any more questions, just ask.
AoR Zeta is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:53 AM.


Advertisement
Log in to turn off these ads.