feuille de style

feuille de style - HTML/CSS - Programmation

Marsh Posté le 04-11-2004 à 21:09:19    

salut
j'ai creer des tableaux  
et je voudrais savoir comment faire pour avoir des feuilles de style different pour le deux tableaux

Code :
  1. <style type="text/css">
  2. /*1er tableau*/
  3. .cool
  4. background-color: #7A0000;
  5. border-bottom: groove;
  6. font-family: fantasy;
  7. font-size: xx-large;
  8. padding-bottom: 20px;
  9. }
  10. /*2eme tableau*/
  11. .coool
  12. background-color: #7A00CD;
  13. border-bottom: groove;
  14. font-family: serif;
  15. font-size: xx-large;
  16. padding-bottom: 20px;
  17. }
  18. </style>
  19. </head>
  20. <body>
  21. <table id="cool" border="2" wight="120" height="25" cellspacing="2">
  22.        <tr class="cool">
  23.        <td wight="120" height="25"</td>ca vas
  24.        </tr>
  25. <table id="coool" border="3" align="center" wight="120" height="25" cellspacing="2">
  26.        <tr class="coool">
  27.        <td wight="120" height="25"</td>ca vas
  28.        </tr>
  29. </table>
  30. </body>


merci de m'aider

Reply

Marsh Posté le 04-11-2004 à 21:09:19   

Reply

Marsh Posté le 04-11-2004 à 21:18:26    

pour appeler un id depuis un css, on utilise #
pour appeler une classe on utilise .
c'est la base :sweat:
 
donc si id="foo" alors dans ton CSS tu styles #foo
si class="bar" alors .bar dans le CSS
 
ici t'as id="foo" et t'appelles .foo, ca va pas marcher [:spamafote]


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r
Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed