Bonjour à tous,
je suis débutant en HTML/CSS et je cherche à créer un site web pour mon entreprise où je suis actuellement en stage.
C'est un site assez basique qui ressemble actuellement à ça :
Un ami Webdesigner m'a fait une maquette qui lui semble plus pro mais mon soucis est que je n'arrive pas à faire le menu fondu dans le fond d'écran ainsi qu'inclure une bannière en fond d'écran blanc qui pourra contenir le logo ainsi que le choix de langue...
Voici mon code HTML de ma page d'accueil :
Ainsi que mon code CSS :
Code : 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
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50 <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <link rel="stylesheet" href="HomePageStyle.css" /> <title>Page d'accueil</title> </head> <body TOPMARGIN="50" BOTTOMMARGIN="50" LEFTMARGIN="40" RIGHTMARGIN="40"> <center> <p><img src="LogoFidelitas.jpeg"/></p> </center> <div id="langue" align="right"> <a href="PagedeGardeFR.html" title="Français"><img src="FlagFR.jpeg" alt "Français" /></a> <a href="PagedeGardeEN.html" title="English"><img src="FlagEN.jpeg" alt "English" /></a> </div> <div id="Menu"> <ul id="onglets"> <li><a href="AboutUsFR.html"> L'équipe </a></li> <li><a href="ContactUsFR.html"> Nous contacter </a></li> <li><a href="ServicesFR.html"> Nos services </a></li> <li class="active"><a href="PagedeGardeFR.html"> Accueil </a></li> </ul> </div> <table style="text-align: left; width: 100%;" border="0" cellpadding="0" cellspacing="0"> <tbody> <tr> <td style="width: 20px;"></td> <td style="width: 55px;"> <td style="width: 929px;"><h2><u>Toute l'équipe de Fidelitas vous souhaite la bienvenue sur son site web !</u></h2> <a href="AboutUsFR.html" title="Notre equipe"><img src="Team.jpg" alt "Notre equipe" /></a> <br> <h2> <u>Les services d'une fiduciaire et bien plus encore !</u></h2> <br><a href="ServicesFR.html" title="Nos services"><img src="Service.jpg" alt "Nos services" /></a> <br> <h2><u>Vous souhaitez nous contacter ? Cliquez sur l'image.</u></h2> <br><a href="ContactUsFR.html" title="Nous contacter"><img src="ContacterEN.jpg" alt "Nous contacter" /></a> </td> <td style="width: 20px;"></td> </tr> </tbody> </table> </body> </html>
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
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81 #onglets { font : bold 20px CaviarDreams; src:url('CaviarDreams.ttf'); list-style-type : none; padding-bottom : 73px; /* à modifier suivant la taille de la police ET de la hauteur de l'onglet dans #onglets li */ border-bottom : 1px solid #000000; margin-left : 0; line-height:normal; } #onglets li { float : right; left: -50%; position: relative; text-align: left; height : 70px; /* à modifier suivant la taille de la police pour centrer le texte dans l'onglet */ background-color: #81BEF7; margin : 2px 2px 0 2px !important; /* Pour les navigateurs autre que IE */ margin : 1px 2px 0 2px; /* Pour IE */ } #onglets a { display : block; color : #000000; text-decoration : none; no-repeat left top; padding : 25px; } #onglets a:hover { background-color: lightblue; } #menu { border-bottom : 1px solid #9EA0A1; padding-bottom : 25px; } * Menu des langues */ #langue { padding: 5px; display: block; margin: 0px; position: absolute; height: 25px; width: 70px; top: 50px; right: 30px; } #langue img { margin: 0px 5px; padding: 0px; border-style: none; } body { background: url('Background.png'); font-family: Exo-light; src: url('Exo-Light.ttf'); color: #ffffff; } html, body { margin: 0; padding: 0; height: 100%; width: 100%; #p1 {background-color: hsl(120, 100%, 50%);} } /* l'image occupe toute la place du body */ #arriere { width : 100%; height: 100%; } img { vertical-align:top; }
Merci d'avance pour votre aide !
Partager