IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Mise en page CSS Discussion :

Déclaration d'une classe css pour un tableau


Sujet :

Tableau en CSS

  1. #1
    Futur Membre du Club
    Profil pro
    Inscrit en
    Mars 2011
    Messages
    6
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2011
    Messages : 6
    Points : 7
    Points
    7
    Par défaut Déclaration d'une classe css pour un tableau
    Pourquoi ma table html déclarée comme suit :

    Code html : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    <table id="dnd-example" width="100%" class="totreetable">
      <!--<caption>Drag and drop table example.</caption>-->
      <thead>
        <tr>
          <th>Title</th>
          <th>Size</th>
          <th>Kind</th>
        </tr>
      </thead>
      <tbody>
        <tr id="node-20">
          <td><span class="file">CHANGELOG</span></td>
          <td>4 KB</td>
          <td>Plain text</td>
        </tr>
    etc, etc...

    ne prend pas en compte ma classe css suivante :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    /* TABLE
     * ========================================================================= */
    .totreetable table {
      border: 1px solid #888;
      border-collapse: collapse;
      line-height: 1;
      margin: 1em auto;
      width: 90%;
    }
     
    /* Caption
     * ------------------------------------------------------------------------- */
    .totreetable table caption {
      font-size: .9em;
      font-weight: bold;
    }
     
    /* Header
     * ------------------------------------------------------------------------- */
    .totreetable table thead {
      background: #aaa url(../img/bg-table-thead.png) repeat-x top left;
      font-size: .9em;
    }
     
    .totreetable table thead tr th {
      border: 1px solid #888;
      font-weight: normal;
      padding: .3em 1.67em .1em 1.67em;
      text-align: left;
    }
     
    /* Body
     * ------------------------------------------------------------------------- */
    .totreetable table tbody tr td {
      cursor: default;
      padding: .3em 1.5em;
    }
     
    .totreetable table tbody tr.even {
      totreetable: #f3f3f3;
    }
     
    .totreetable table tbody tr.odd {
      background: #fff;
    }
     
    .totreetable table span {
      background-position: center left;
      background-repeat: no-repeat;
      padding: .2em 0 .2em 1.5em;
    }
     
    .totreetable table span.file {
      background-image: url(../img/page_white_text.png);
    }
     
    .totreetable table span.folder {
      background-image: url(../img/folder.png);
    }
    Je veux appliquer ce style css pour un seul type de tableau.
    Est-ce que ma définition de .totreetable est correcte ?
    Merci de votre aide.

  2. #2
    Futur Membre du Club
    Profil pro
    Inscrit en
    Mars 2011
    Messages
    6
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2011
    Messages : 6
    Points : 7
    Points
    7
    Par défaut
    table.totreetable

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Réponses: 0
    Dernier message: 12/04/2013, 15h19
  2. Deux classes CSS pour une même cellule d'un tableau
    Par bernidupont dans le forum Mise en page CSS
    Réponses: 3
    Dernier message: 04/05/2011, 21h34
  3. Réponses: 4
    Dernier message: 06/10/2008, 16h27
  4. Séparer la définition et la déclaration d'une classe
    Par prgasp77 dans le forum Langage
    Réponses: 5
    Dernier message: 24/08/2005, 21h37
  5. recherche une classe KZtransImg pour delphi 7
    Par plante20100 dans le forum Composants VCL
    Réponses: 2
    Dernier message: 21/07/2005, 13h56

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo