Bonjour à tous,
honte à moi, je n'arrive pas à trouver l'erreur. J'essaye d'aider un ami sur une charte graphique pas terrible.
Le texte ne s'affiche pas dans le menu. L'erreur est surement grossière, mais je ne la vois pas.
J'ai simplifié au maximum en supprimant les images en background.
Codepen me donne une erreur aussi.
Code CSS : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 html { font-size:100%; } body { font-size:100%; margin:0; padding:0; background-color:#eef3fa; } #fond1 { width:950px; height:auto; margin:10px auto; padding:25px; background-color: white;} #fond2 { width:auto; height:auto; margin:0; padding: 10px; background-color:#7d7d7d; border:5px solid #5d5d5d; } #fond3 { width:auto; height:600px; background-color:#7d7d7d; border:10px solid white; margin:0; padding:0;} #bandeau { width:898px; height:70px; margin:0; margin-top:5px; border:1px solid green; } .logo { width:225px; height:125px; margin:0; padding:0px; position:relative; top:-56px; left:-18px; transform:rotate(-13deg); border:1px solid black; } #menu { width:840px; height:42px; margin:0; margin-top:25px; margin-left:50px; padding:0; border:1px solid red;} .hormenu { list-style-type:none; margin:0; padding:0; margin-left:220px; text-align:center; font-size:85%; } .hormenu li { float:left; border:1px solid blue; } .hormenu li a { display:block; width:138px; height:32px; line-height:32px; margin:4px 0; padding:0px; color:#fff; text-decoration:none; } .hormenu li a:hover { color:#5d5d5d; text-decoration:underline; }
Code html:
Merci d'avance pour votre aide
Code html : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 <div id="fond1"> <div id="fond2"> <div id="fond3"> <div id="bandeau"> <div id="menu"> <div class="logo"></div> <ul class="hormenu"> <li><a href="" title="Présentation">PRÉSENTATION</a></li> <li><a href="" title="Inventions">INVENTIONS</a></li> <li><a href="" title="Histoire">HISTOIRE</a></li> <li><a href="" title="Contact">CONTACT</a></li> </ul> </div> </div> </div><!-- Fin de fond3 --> </div><!-- Fin de fond2 --> </div><!-- Fin de fond1 -->
Partager