28220 sujets

CSS et mise en forme, CSS3

Bonjour

le tag bordercolor passe pas avec Firefox :

<table width="549" border="1" cellpadding="0" cellspacing="0" bordercolor="#BDCBE0">[code]

Que dois je faire en css ?

Merci

Philippe
Modifié par ensemblevide (25 Oct 2005 - 19:53)
essaye ptête border-color au lieu de bordercolor

sinon ben dans le css ça donne ça


#table {
        border-color: #******
}


sous condition de pas oublier dans le code html le <div id="table"> code de ton tableau </div>

bref....
Modifié par KnS (25 Oct 2005 - 11:38)
Merci pour ta réponse
Déjà border-color passe ni avec firefox ni IE 6 !
Smiley decu

bordercolor passe avec IE

Pour le reste je suis en train d'essayer
Merci
je parlais de la première solution Smiley cligne

Pour la méthode css j'ai fait :

<table width="549" id="tableau1" border="1" cellpadding="0" cellspacing="0" >


et dans ma feuille de style :

#tableau1 {
border-color: #BDCBE0;
}


Mais ça ne fonctionne pas Smiley decu

Une idée
essaye plutôt :
<table width="549" id="tableau1" cellpadding="0" cellspacing="0" >
avec
#tableau1 {
border: 1px solid #BDCBE0;
}

Modifié par bbp (25 Oct 2005 - 13:03)
Bonjour,

Il faut il me semble indiquer en css également la taille et style de la bordure et donc l'enlever de ton code html. Un exemple:


table#test, table#test th, table#test td{
border:red 1px solid;
border-collapse:collapse;
}


<table summary="Tarifs divers" id="test">
Pour bbp
Ca fonctionne toujours pas. Je donne tout le code du tableau peut être il y a un truc qui bloque :

<table width="549"  id="tableau1" border="1" cellpadding="0" cellspacing="0" >
                        <tr bgcolor="#799EC3">
                          <td height="20" colspan="5" class="textecourantblancgras10centre">VENTE
                            DE VAPEUR</td>
                        </tr>
                        <tr bgcolor="#E5EAF2" class="textecourantgras10centre">
                          <td width="42" rowspan="2">CODE</td>
                          <td width="184" rowspan="2">MODE D'UTILISATION </td>
                          <td width="165" rowspan="2">ABONNEMENT ANNUEL (prime
                            fixe publique) €/kW(1)</td>
                          <td height="19" colspan="2">CONSOMMATION</td>
                        </tr>
                        <tr>
                          <td width="70" height="33" bgcolor="#E5EAF2" class="textecourantgras10centre">Hiver
                            (2)</td>
                          <td width="71" bgcolor="#E5EAF2" class="textecourantgras10centre">Eté (3)</td>
                        </tr>
                        <tr>
                          <td height="35" colspan="3" class="textecourantgras10centre">Comptage
                            sur condensats - Facturation en Tonne vapeur</td>
                          <td width="70" height="35" class="textecourantgras10centre">€/Tonne
                            vapeur </td>
                          <td width="71" height="35" class="textecourantgras10centre"><p>€/Tonne
                              vapeur </p></td>
                        </tr>
                        <tr>
                          <td width="42" height="20" class="textecourantgras10centre">100</td>
                          <td width="184" height="20" class="textecourantcentre">Longue
                            utilisation </td>
                          <td width="165" height="20" class="textecourantgras10centre">23,65</td>
                          <td width="70" height="20" class="textecourantgras10centre">24,45</td>
                          <td width="71" height="20" class="textecourantgras10centre"><p>15,50</p></td>
                        </tr>
                        <tr>
                          <td width="42" height="20" class="textecourantgras10centre">110</td>
                          <td width="184" height="20" class="textecourantcentre">Utilisation
                            moyenne</td>
                          <td width="165" height="20" class="textecourantgras10centre">18,40</td>
                          <td width="70" height="20" class="textecourantgras10centre">27,60</td>
                          <td width="71" height="20" class="textecourantgras10centre">20,30</td>
                        </tr>
                        <tr>
                          <td width="42" height="35" class="textecourantgras10centre">120</td>
                          <td width="184" height="35" class="textecourantcentre">Court
                            utilisation, préchauffe </td>
                          <td width="165" height="35" class="textecourantgras10centre">7,10</td>
                          <td width="70" height="35" class="textecourantgras10centre">38,50</td>
                          <td width="71" height="35" class="textecourantgras10centre">38,50</td>
                        </tr>
                        <tr>
                          <td height="35" colspan="3" class="textecourantgras10centre">Comptage
                            sur circuit secondaire - Facturation en MWh</td>
                          <td width="70" height="35" class="textecourantgras10centre">€/MWh</td>
                          <td width="71" height="35" class="textecourantgras10centre"><p>€/MWh</p></td>
                        </tr>
                        <tr>
                          <td width="42" height="20" class="textecourantgras10centre">200</td>
                          <td width="184" height="20" class="textecourantcentre">Longue
                            utilisation </td>
                          <td width="165" height="20" class="textecourantgras10centre">23,65</td>
                          <td width="70" height="20" class="textecourantgras10centre">36,20</td>
                          <td width="71" height="20" class="textecourantgras10centre"><p>22,90</p></td>
                        </tr>
                        <tr>
                          <td width="42" height="20" class="textecourantgras10centre">210</td>
                          <td width="184" height="20" class="textecourantcentre">Utilisation
                            moyenne</td>
                          <td width="165" height="20" class="textecourantgras10centre">18,40</td>
                          <td width="70" height="20" class="textecourantgras10centre">40,80</td>
                          <td width="71" height="20" class="textecourantgras10centre">30,00</td>
                        </tr>
                        <tr>
                          <td width="42" height="35" class="textecourantgras10centre">220</td>
                          <td width="184" height="35" class="textecourantcentre">Court
                            utilisation, préchauffe </td>
                          <td width="165" height="35" class="textecourantgras10centre">7,10</td>
                          <td width="70" height="35" class="textecourantgras10centre">56,95</td>
                          <td width="71" height="35" class="textecourantgras10centre">56,95</td>
                        </tr>
                      </table>


Et la feuille de style :

#tableau1 {
	border: 1px solid #BDCBE0;
}
Merci

Ca avance j'ai bien la bordure (cadre) de la table qui apparaît. Maintenant si je veux qu'il y ait des bordures partout (toutes les cellules) il faut aussi s'attaquer au tr ?
fiou... j'avais presque oublié les galères liées au tableaux et au gros html qui tache....

Merci Alsacreations de m'avoir guider dans le "strict" et le css... ça m'a fait économiser pas mal de tubes d'aspirine... Smiley cligne