Html Help

Discussion in 'HTML' started by Mauro, Dec 20, 2007.

  1. Mauro

    Mauro Guest

    Hi, i'm beginner, i've created a table and i'm using style for attributes
    Into the third row, I need to change color of first text row (in this case
    this is "Modello:TR30/2-160 TOP 1000 CNC")
    How can i do this using class ?

    Thanks

    my code:

    <style type="text/css">
    table, td, th{border:1px solid #EEE;border-collapse:collapse}
    td,th{padding:3px 5px}
    td{font-family: Verdana; font-size: 70%; text-align:left}
    th{font-family: Verdana; font-size: 80%; text-align:center}

    </style>


    <table cellspacing="1" cellpadding="1" width="300" border="1">
    <tbody>
    <tr>
    <th>TUBO - MACCHINA TOP 1000</th>
    </tr>
    <tr>
    <td><a href="#LiveContent[tmt1000]"><img height="256" alt="Clicca
    per vedere il Filmato" src="/Portals/6/flv/tmt1000.jpg" width="320"
    border="0"></a></td>
    </tr>
    <tr>
    <td>
    Modello:TR30/2-160 TOP 1000 CNC<br>
    Materiale lavorato: tubo in acciaio<br>
    Diametri min.-max. lavorabili: da 3 a 32 mm<br>
    Lunghezze min.-max. lavorabili: da 10 a 160 mm<br>
    Operazioni eseguite: taglio, sfacciatura, smussatura
    </td>
    </tr>
    </tbody>
    </table>
     
    Mauro, Dec 20, 2007
    #1
    1. Advertising

  2. Gazing into my crystal ball I observed "Mauro" <>
    writing in news:476a73b8$0$10622$:

    > Hi, i'm beginner, i've created a table and i'm using style for
    > attributes Into the third row, I need to change color of first text
    > row (in this case this is "Modello:TR30/2-160 TOP 1000 CNC")
    > How can i do this using class ?
    >


    You need to use some semantics. If Modello:TR30/2 is a heading, then mark
    it up as such. You can then style the heading any way you want.

    --
    Adrienne Boswell at Home
    Arbpen Web Site Design Services
    http://www.cavalcade-of-coding.info
    Please respond to the group so others can share
     
    Adrienne Boswell, Dec 20, 2007
    #2
    1. Advertising

  3. Mauro

    Bone Ur Guest

    Well bust mah britches and call me cheeky, on Thu, 20 Dec 2007 13:52:58
    GMT Mauro scribed:

    > Hi, i'm beginner, i've created a table and i'm using style for
    > attributes Into the third row, I need to change color of first text
    > row (in this case this is "Modello:TR30/2-160 TOP 1000 CNC")
    > How can i do this using class ?
    >
    > Thanks
    >
    > my code:
    >
    > <style type="text/css">
    > table, td, th{border:1px solid #EEE;border-collapse:collapse}
    > td,th{padding:3px 5px}
    > td{font-family: Verdana; font-size: 70%; text-align:left}
    > th{font-family: Verdana; font-size: 80%; text-align:center}
    >
    > </style>
    >
    >
    > <table cellspacing="1" cellpadding="1" width="300" border="1">
    > <tbody>
    > <tr>
    > <th>TUBO - MACCHINA TOP 1000</th>
    > </tr>
    > <tr>
    > <td><a href="#LiveContent[tmt1000]"><img height="256"
    > alt="Clicca
    > per vedere il Filmato" src="/Portals/6/flv/tmt1000.jpg" width="320"
    > border="0"></a></td>
    > </tr>
    > <tr>
    > <td>
    > Modello:TR30/2-160 TOP 1000 CNC<br>
    > Materiale lavorato: tubo in acciaio<br>
    > Diametri min.-max. lavorabili: da 3 a 32 mm<br>
    > Lunghezze min.-max. lavorabili: da 10 a 160 mm<br>
    > Operazioni eseguite: taglio, sfacciatura, smussatura
    > </td>
    > </tr>
    > </tbody>
    > </table>


    <td>
    <div class="fst">Modello:TR30/2-160 TOP 1000 CNC</div>
    Materiale lavorato: tubo in acciaio<br>

    ....in style section:

    ..fst {
    background:inherit;color:#8090a0;
    }

    --
    Bone Ur
    Cavemen have formidable pheromones.
     
    Bone Ur, Dec 20, 2007
    #3
  4. Mauro

    Mauro Guest

    >
    > You need to use some semantics. If Modello:TR30/2 is a heading, then mark
    > it up as such. You can then style the heading any way you want.
    >


    can you show me by example...

    many thanks

    Mauro
     
    Mauro, Dec 20, 2007
    #4
  5. Mauro

    Mauro Guest

    > <div class="fst">Modello:TR30/2-160 TOP 1000 CNC</div>
    > Materiale lavorato: tubo in acciaio<br>
    >
    > ...in style section:
    >
    > .fst {
    > background:inherit;color:#8090a0;
    > }
    >
    > --
    > Bone Ur
    > Cavemen have formidable pheromones.


    Many thanks, i've understood

    Best regards

    Mauro
     
    Mauro, Dec 20, 2007
    #5
    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. =?Utf-8?B?c2VyZ2UgY2FsZGVyYXJh?=

    Help on HTML server control vs HTML control

    =?Utf-8?B?c2VyZ2UgY2FsZGVyYXJh?=, Sep 15, 2005, in forum: ASP .Net
    Replies:
    5
    Views:
    2,159
    =?Utf-8?B?c2VyZ2UgY2FsZGVyYXJh?=
    Sep 15, 2005
  2. Tom
    Replies:
    7
    Views:
    446
    William Desrochers
    Sep 9, 2004
  3. James O'Riley
    Replies:
    4
    Views:
    1,134
    James O'Riley
    May 5, 2006
  4. Adam Akhtar
    Replies:
    9
    Views:
    561
    Florian Gilcher
    Aug 16, 2008
  5. Lucy
    Replies:
    6
    Views:
    358
    Jim Ley
    Jan 1, 2004
Loading...

Share This Page