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 -
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
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
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;
}
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;
}
Bonjour,
Euh...je ne suis pas encore au top en CSS, mais mon problème est il insolvable?
Pas de solutions à me proposer?
Euh...je ne suis pas encore au top en CSS, mais mon problème est il insolvable?
Pas de solutions à me proposer?
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.
Le css c'est bien , mais on peut pas tester le résultat si on ne sait pas sur quoi cela doit s'appliquer.
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>
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>
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question
Euh tu peux faire voir ce que ca donnes ?
Moi ca donnes ceci ta page :
http://www.ipclic.com/ccm/balises_h.html
Moi ca donnes ceci ta page :
http://www.ipclic.com/ccm/balises_h.html
Bizarre qu'en local ca ne fonctionne pas ... Mis dans une simple page html, en local ca fonctionne pour moi ;)
Bonne continuation.
Bonne continuation.