Tables

Discussion in 'HTML' started by Jon Jervis, Jun 18, 2005.

  1. Jon Jervis

    Jon Jervis Guest

    Just wondering whether or not I can change the alignment / colour etc of all
    the individual cells within a table at once rather than adding "align /
    color" tabs to every single one? I just want to <align="centre"> about 500
    cells in one colour!!

    Thanks for any help.

    Jon.
     
    Jon Jervis, Jun 18, 2005
    #1
    1. Advertising

  2. Jon Jervis

    Els Guest

    Jon Jervis wrote:

    > Just wondering whether or not I can change the alignment / colour etc of all
    > the individual cells within a table at once rather than adding "align /
    > color" tabs to every single one? I just want to <align="centre"> about 500
    > cells in one colour!!
    >
    > Thanks for any help.
    >
    > Jon.


    HTML:

    <table class="someclass">
    <tr><td>...</td></tr>
    <tr><td>...</td></tr>
    <tr><td>...</td></tr>
    ...etc..
    </table

    CSS:

    table.someclass td{
    background-color:purple;
    color:yellow;
    text-align:center;
    }


    --
    Els http://locusmeus.com/
    Sonhos vem. Sonhos vão. O resto é imperfeito.
    - Renato Russo -
    Now playing: The Scene - Alcohol En Tranen
     
    Els, Jun 18, 2005
    #2
    1. Advertising

  3. Jon Jervis

    Jon Guest

    Kewl! Thanks for your help.
    Jon.


    "Jon Jervis" <> wrote in message
    news:...
    > Just wondering whether or not I can change the alignment / colour etc of
    > all the individual cells within a table at once rather than adding "align
    > / color" tabs to every single one? I just want to <align="centre"> about
    > 500 cells in one colour!!
    >
    > Thanks for any help.
    >
    > Jon.
    >
    >
     
    Jon, Jun 18, 2005
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. suzy

    newbie: tables/layout

    suzy, Jul 27, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    1,013
  2. Lou

    Hash Tables

    Lou, Sep 5, 2003, in forum: ASP .Net
    Replies:
    5
    Views:
    6,465
    Richard Grimes [MVP]
    Sep 29, 2003
  3. Peter Bassett
    Replies:
    3
    Views:
    931
    Augustus
    Aug 15, 2003
  4. Otuatail

    Tables within tables

    Otuatail, Jul 31, 2004, in forum: HTML
    Replies:
    7
    Views:
    498
  5. Chris Brat
    Replies:
    5
    Views:
    698
    =?iso-8859-1?q?Luis_M._Gonz=E1lez?=
    Aug 22, 2006
Loading...

Share This Page