Visualizzazione dei risultati da 1 a 7 su 7

Discussione: celle,bordi e css

  1. #1
    Utente di HTML.it
    Registrato dal
    Oct 2002
    Messaggi
    16

    celle,bordi e css

    ciao a tutti!
    mi sto esaurendo su un problemino: è possibile fare bordi diversi per ogni cella di una tabella con i css?

  2. #2
    si ti crei degli stili diversi e poi ad ogni cella associ lo stile che vuoi tu...es:
    <td class="stile1">ciao</td>
    <td class="stile2">hello</td>
    <td class="stile3">hola</td>
    ......
    Planet Earth is blue and there's nothing I can do

  3. #3
    Utente di HTML.it
    Registrato dal
    Oct 2002
    Messaggi
    16
    avresti qualche esempio da farmi vedere per cortesia? non sono tanto pratica...

  4. #4
    codice:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <HTML LANG="IT">
    <HEAD>
      <TITLE> </TITLE>
      <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
      <style>
      .cella1{
      border: 1px solid #FF0000;
      } 
      .cella2{
      border: 1px solid #FFFF00;
      } 
      .cella3{
      border: 1px solid #00FF00;
      } 
      </style>
    </HEAD>
    <BODY>
    <table>
    <tr>
      <td class="cella1">Testo testo testo</td>
    </tr>
    <tr>
      <td class="cella2">Testo testo testo</td>
    </tr>
    <tr>
      <td class="cella3">Testo testo testo</td>
    </tr>
    </table>
    </BODY>
    </HTML>
    Sayonara...

    kami del tempo / raccogli i miei ricordi / vola distante.

    Rinaldo - RexPlants
    RexPlants il forum delle piante che mangiano

  5. #5
    codice:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>Saluti</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <style type="text/css">
    <!--
    .stile1 {
    	border: 1px dotted #0000FF;
    }
    .stile2 {
    	border: 2px dashed #FF6600;
    }
    .stile3 {
    	border: 1px solid #000000;
    }
    -->
    </style>
    </head>
    
    <body>
    <table width="400" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td class="stile1">ciao</td>
      </tr>
      <tr>
        <td class="stile2">hello</td>
      </tr>
      <tr>
        <td class="stile3">hola</td>
      </tr>
    </table>
    
    </body>
    </html>
    :tongue:
    Planet Earth is blue and there's nothing I can do

  6. #6
    Utente di HTML.it
    Registrato dal
    Oct 2002
    Messaggi
    16
    mille grazie!!! siete gentilissimi!
    sembra facile...spero :adhone:

  7. #7
    Utente di HTML.it
    Registrato dal
    Oct 2002
    Messaggi
    16
    bellissimo!!funziona!

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.