Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8

Thread: League table

  1. #1
    New to the CF scene
    Join Date
    Jan 2008
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  • #2
    New Coder
    Join Date
    Jan 2008
    Posts
    42
    Thanks
    4
    Thanked 4 Times in 4 Posts
    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 05:05 PM.

  • #3
    New Coder
    Join Date
    Jan 2008
    Posts
    42
    Thanks
    4
    Thanked 4 Times in 4 Posts
    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 05:07 PM. Reason: This was meant to be an edit to my previous post. Whoops...

  • #4
    New to the CF scene
    Join Date
    Jan 2008
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #5
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,927
    Thanks
    6
    Thanked 1,040 Times in 1,013 Posts
    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?

  • #6
    New Coder
    Join Date
    Jan 2008
    Posts
    42
    Thanks
    4
    Thanked 4 Times in 4 Posts
    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.

  • #7
    New to the CF scene
    Join Date
    Jan 2008
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for the replies and putting me on the right track both.Cheers

  • #8
    New Coder
    Join Date
    Jan 2008
    Posts
    42
    Thanks
    4
    Thanked 4 Times in 4 Posts
    No problem. If you have any more questions, just ask.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •