Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
978 connectés 

  FORUM HardWare.fr
  Programmation
  HTML/CSS

  CSS : thead ?

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

CSS : thead ?

n°858470
Nenelle
Josie Maran addicted
Posté le 27-09-2004 à 00:31:14  profilanswer
 

Hello :)
 
J'ai un probleme, je voudrais fixer en CSS des attributs concernants le thead de mon style de tableau defini :
 
.purpletable
{
 background : #DDDDDD;
 border-left: 1px solid #6633AA;
 border-right: 1px solid #6633AA;
 border-top: 1px solid #6633AA;
 border-bottom: 1px solid #6633AA;
}
 
Je ne sais pas comment faire pour definir par exemple l'alignement de l'element thead d'une table de class purpletable.
 
J'ai essayé plusieurs trucs (genre mettre thead { ... }; a l'interieur de .purpletable) mais sans succès.
 
Merci pour votre aide.


---------------
http://chilax.com/forum/index.php?showforum=46 => !!!
mood
Publicité
Posté le 27-09-2004 à 00:31:14  profilanswer
 

n°858496
simogeo
j'ai jamais tué de chats, ...
Posté le 27-09-2004 à 00:44:01  profilanswer
 

thead.purpletable {}


Message édité par simogeo le 27-09-2004 à 00:44:11

---------------
from here and there -- \o__________________________________ -- la révolution de la terre, en silence
n°858502
Nenelle
Josie Maran addicted
Posté le 27-09-2004 à 00:54:16  profilanswer
 

merci de ta reponse mais ca n'a pas l'air de marcher
 
j'ai fait
 
.purpletable
{
 background : #DDDDDD;
 border-left : 1px solid #6633AA;
 border-right : 1px solid #6633AA;
 border-top : 1px solid #6633AA;
 border-bottom : 1px solid #6633AA;
}
 
thead.purpletable
{
  text-align : center;
}
 
mais le texte n'est pas centré


---------------
http://chilax.com/forum/index.php?showforum=46 => !!!
n°858537
skylight
Made in France.
Posté le 27-09-2004 à 20:11:56  profilanswer
 

thead.purpletable td { ?

n°858628
Nenelle
Josie Maran addicted
Posté le 27-09-2004 à 21:58:10  profilanswer
 

j'arrive pas... tu pourrais me mettre tout le passage stp...  
 
merci bcp d'aider un newbie du css :)


---------------
http://chilax.com/forum/index.php?showforum=46 => !!!
n°858633
simogeo
j'ai jamais tué de chats, ...
Posté le 27-09-2004 à 22:06:00  profilanswer
 

nenelle > popopop .. ca fonctionne  :D  
 

Code :
  1. <?xml version="1.0" encoding="iso-8859-1"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  3.     "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  7. <title>Album photo</title>
  8. <style type="text/css">
  9. thead.maclass {
  10. font-size:22px;
  11. color:#555;
  12. }
  13. </style>
  14. </head>
  15. <body>
  16. <table>
  17. <thead class="maclass">
  18. <tr>
  19. <td>test 1</td>
  20. <td>test 2</td>
  21. </tr>
  22. </thead>
  23. <tbody>
  24. <tr>
  25. <td>data 1</td>
  26. <td>data 2</td>
  27. </tr>
  28. </tbody>
  29. </table>
  30. </body>
  31. </html>


Message édité par simogeo le 27-09-2004 à 22:06:15

---------------
from here and there -- \o__________________________________ -- la révolution de la terre, en silence
n°858653
Nenelle
Josie Maran addicted
Posté le 27-09-2004 à 22:34:17  profilanswer
 

c'est exact ca marche
 
hé bien merci :)


---------------
http://chilax.com/forum/index.php?showforum=46 => !!!

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  HTML/CSS

  CSS : thead ?

 

Sujets relatifs
import de cssComment centrer un menu en CSS avec Internet Explorer ?
Css et liens..[CSS] Alternative à min-height
[css]Un formulaire dans une listeXHTML + CSS valid : décalage aléatoire avec Firefox et Mozilla
[CSS] div avec angles arrondis[CSS] pb de chevauchement de calques
[CSS] centrer ses DIVs sur la page"font" dans les CSS
Plus de sujets relatifs à : CSS : thead ?


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR