Balise rebelle

Résolu
mailbox13630 Messages postés 127 Date d'inscription   Statut Membre Dernière intervention   -  
mailbox13630 Messages postés 127 Date d'inscription   Statut Membre Dernière intervention   -
Bonjour,


Je rencontre un soucis d'affichage pour des balises <h3></h3> (Peu importe le numéro d'ailleurs!)

Elles sont censées être en rouge gras.

La première s'affiche bien en fonction du CSS
La seconde s'affiche mal
La troisième s'affiche bien.
La quatrième bien, etc...

J'ai vérifié tout le code de la page (différents validateurs de xhtml), toutes mes balises sont bien fermées.

D'où est-ce-que ça peut venir?


Merci pour votre aide

7 réponses

chaman35
 
montre ton css stp
0
mailbox13630 Messages postés 127 Date d'inscription   Statut Membre Dernière intervention   4
 
Bonjour,


Voici le CSS:
h1
{
font-size:16px;
color:#990000;
text-align:left;
}
h1:hover
{
text-decoration:underline;
}
h2
{
font-size:14px;
font-weight:bold;
margin-left:10px;
margin-bottom:25px;
}
h2:first-letter
{
color:#990000;
font-weight:bold;
font-family:Garamond;
font-size:26px;
}

h3
{
color:gray;
font-size:12px;
}
h3:first-letter
{
color:#990000;
font-size:20px;
font-weight:bold;
}

h4
{
color:gray;
font-size:10px;
}

h4:first-letter
{
color:#990000;
font-weight:bold;
font-family:Garamond;
font-size:16px;
}
0
mailbox13630 Messages postés 127 Date d'inscription   Statut Membre Dernière intervention   4
 
Bonjour,


Euh...je ne suis pas encore au top en CSS, mais mon problème est il insolvable?

Pas de solutions à me proposer?
0
djflexlive Messages postés 557 Date d'inscription   Statut Membre Dernière intervention   95
 
Code source ou tu appelles ces balises ?

Le css c'est bien , mais on peut pas tester le résultat si on ne sait pas sur quoi cela doit s'appliquer.
0
mailbox13630 Messages postés 127 Date d'inscription   Statut Membre Dernière intervention   4
 
Bonjour,


Voici la partie du code sur laquelle j'ai fait une erreur que je ne parviens pas à solutionner:
La première balise h2 s'affiche bien en fonction des indications dans le Css pour ce type de balise.

Par contre, les autres non: (je les ai mises en gras)

<h2 id="">blabla</h2>



<p class="tabunecolgauche">2004</p>
<p class="tabunecoldroite">
<a href="blabla" title="BM avril 2004" target="blank">04</a>
- <a href="#" target="blank">05</a>
- <a href="#" title="BM juin 2004" target="blank">06</a>
- <a href="#" title="BM juillet 2004" target="blank">07</a>
- <a href="#" title="BM septembre 2004" target="blank">09</a>
- <a href="#" title="BM septembre 2004" target="blank">09</a>
- <a href="#" title="BM octobre 2004" target="blank">10</a>
- <a href="#" title="BM octobre 2004" target="blank">11</a>
- <a href="#" title="BM octobre 2004" target="blank">11</a>
</p>

<p class="tabunecolgauche">2005</p><p class="tabunecoldroite">
<a href="#" title="BM janvier 2005" target="blank">01</a>
- <a href="#" title="BM février 2005" target="blank">02</a>
- <a href="#" title="BM mars 2005" target="blank">03</a>
- <a href="#" title="BM mai 2005" target="blank">05</a>
- <a href="#" title="BM juin 2005" target="blank">06</a>
- <a href="#" title="BM juillet 2005" target="blank">07</a>
- <a href="#" title="BM septembre 2005" target="blank">09</a>
- <a href="#" title="BM octobre 2005" target="blank">10</a>
</p>

<p class="tabunecolgauche">2006</p><p class="tabunecoldroite">
<a href="#" title="BM janvier 2006" target="blank">01</a>
- <a href="#" title="BM février 2006" target="blank">02</a>
- <a href="#" title="BM mars 2006" target="blank">03</a>
- <a href="#" title="BM mai 2006" target="blank">05</a>
- <a href="#" title="BM juin 2006" target="blank">06</a>
- <a href="#f" title="BM juillet 2006" target="blank">07</a>
- <a href="#" title="BM septembre 2006" target="blank">09</a>
</p>

<p class="tabunecolgauche">2007</p><p class="tabunecoldroite">
<a href="#" title="BM février 2007" target="blank">02</a>
- <a href="#" title="BM mars 2007" target="blank">03</a>
- <a href="#" title="BM avril 2007" target="blank">04</a>
- <a href="#" title="BM mai 2007" target="blank">05</a>
- <a href="#" title="BM juin 2007" target="blank">06</a>
- <a href="#" title="BM juillet 2007" target="blank">07</a>
- <a href="#" title="BM septembre 2007" target="blank">09</a>
- <a href="#" title="BM octobre 2007" target="blank">10</a>
- <a href="#" title="BM décembre 2007" target="blank">12</a>
</p>

<p class="tabunecolgauche">2008</p><p class="tabunecoldroite">
<a href="#" title="BM février 2008" target="blank">02</a>
- <a href="#" title="BM mars 2008" target="blank">03</a>
- <a href="#" title="BM avril 2008" target="blank">04</a>
- <a href="#" title="BM mai 2008" target="blank">05</a>
- <a href="#" title="BM juin 2008" target="blank">06</a>
- <a href="#" title="BM juillet 2008" target="blank">07</a>
- <a href="#" title="BM septembre 2008" target="blank">09</a>
- <a href="#" title="BM novembre 2008" target="blank">11</a>
- <a href="#" title="BM décembre 2008" target="blank">12</a>
</p>

<p class="tabunecolgauche">2009</p><p class="tabunecoldroite">
<a href="#" title="BM décembre 2008" target="blank">01</a>
- <a href="#" title="BM décembre 2008" target="blank">02</a>
</p><br/><br/>


<h2 id="">Blabla</h2>

<p class="tabunecolgauche">1974 à 1977</p><p class="tabunecoldroite">
<a href="#" title="BM 1977" target="blank">Synthèses</a>
</p>

<p class="tabunecolgauche">1988</p><p class="tabunecoldroite">
<a href="#" title="BM 1988" target="blank">Synthèse</a>
</p>

<p class="tabunecolgauche">1990</p><p class="tabunecoldroite">
<a href="#" title="BM 1990" target="blank">Synthèse</a>
</p>

<p class="tabunecolgauche">1992</p><p class="tabunecoldroite">
<a href="#" title="BM 1991" target="blank">Juillet</a>
<a href="#" title="BM 1992" target="blank">Décembre</a>
</p>

<p class="tabunecolgauche">1993</p><p class="tabunecoldroite">
<a href="#" title="BM 1993" target="blank">Juillet</a>
</p>


<p class="tabunecolgauche">1995</p><p class="tabunecoldroite">
<a href="#" title="BM 1995" target="blank">Juillet</a>
</p>

<p class="tabunecolgauche">1996</p><p class="tabunecoldroite">
<a href="#" title="BM 1996" target="blank">Mars</a>
<a href="#" title="BM 1996" target="blank">Juin</a>
<a href="#" title="BM 1996" target="blank">Octobre</a>
</p>


<h2 id="">Démarches</h2>

</div>
</div>
<div id="clr"></div>
<div id="enbas"><p class="alignement_centre"><a href="#" title="blabla">blabla</a></p>
</div>
</body>
</html>
0

Vous n’avez pas trouvé la réponse que vous recherchez ?

Posez votre question
djflexlive Messages postés 557 Date d'inscription   Statut Membre Dernière intervention   95
 
Euh tu peux faire voir ce que ca donnes ?

Moi ca donnes ceci ta page :
http://www.ipclic.com/ccm/balises_h.html
0
mailbox13630 Messages postés 127 Date d'inscription   Statut Membre Dernière intervention   4
 
Merci à vous deux!

C'est uniquement en local que ça ne fonctionnait pas.
Une fois en ligne, mes balises s'affichent bien.

Merci pour votre temps,

;-)
0
djflexlive Messages postés 557 Date d'inscription   Statut Membre Dernière intervention   95
 
Bizarre qu'en local ca ne fonctionne pas ... Mis dans une simple page html, en local ca fonctionne pour moi ;)

Bonne continuation.
0
mailbox13630 Messages postés 127 Date d'inscription   Statut Membre Dernière intervention   4
 
J'utilise Wamp. (une version téléchargée en décembre 2008).

A mon avis, je dois faire une mise à jour..
0
djflexlive Messages postés 557 Date d'inscription   Statut Membre Dernière intervention   95
 
Non, ce script dans une simple page html ouverte avec firefox fonctionne bien (exemple que je t'ai mis en ligne).

De plus wamp ne rentres pas en compte : le css est interprété par les navigateurs.

Bonne continuation !
0
mailbox13630 Messages postés 127 Date d'inscription   Statut Membre Dernière intervention   4
 
Merci!
0