Bonjour,
d'abord, j'expose mon problème dans ce forum car je pense qu'il y a plutôt un problème de CSS.
Le problème dont je parle est visible si je mets le fichier en local, mais pas si le code est dans codepen : http://codepen.io/jreaux62/pen/bBVZJE
En local :
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
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36 <!DOCTYPE html> <html lang="fr"> <head> <meta charset="UTF-8" /> <title></title> <link rel="stylesheet" type="text/css" href="styles.css"> <link rel="stylesheet" href="http://fontawesome.io/assets/font-awesome/css/font-awesome.css"> </head> <body> <main> <section> <form id="authform"> <h2><i class="fa fa-user-o" aria-hidden="true"></i> LOGIN</h2> <p> <label for="login2">Username</label> <input id="login2" type="text" size="30" value="" name="login2" /> </p> <p> <label for="pwd2">Password</label> <input class="btsubmit" id="pwd2" type="password" size="30" value="" name="pwd2" /> </p> <p> <input type="submit" value="Log In" name="goAuth" /> </p> </form> </section> </main> </body> </html>
styles.css :
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 html, body { font-size: 100%; } #authform { max-width: 600px; width: 100%; padding: 30px; margin: 20px auto; background: url(http://www.quebecwoodexport.com/images/stories/slideshow/resineux/cedre/_ccedre.jpg) no-repeat; font-family: Arial, sans-serif; color: #6f5430;/*marron*/ border-radius:10px; box-shadow:5px 10px 10px #999; } #authform h2 { font-size: 160%; font-weight: bold; text-shadow: 2px 2px 0px #decfbb;/*beige clair*/ } #authform h2 i.fa { font-size: 140%; } #authform label { position: relative; display: inline-block; width: 30%; font-weight: bold; text-shadow: 2px 2px 0px #decfbb;/*beige clair*/ padding-left: 20px; } #authform label:before { position: absolute; display: block; content: ''; top: 50%; margin-top: -6px; left: 0; width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 12px; border-color: transparent transparent transparent #6f5430;/*marron*/ } #authform input { display: inline-block; border-radius: 50px; background: transparent; } #authform input:not([type=submit]) { width: 60%; padding: 6px 20px; border: 1px inset #decfbb;/*beige clair*/ box-shadow: 0 10px 10px #6f5430 inset;/*marron*/ } #authform input[type=submit] { max-width: 100px; border: 1px inset #decfbb;/*beige clair*/ box-shadow: 0 1px 2px #6f5430 inset;/*marron*/ font-weight: bold; color: #6f5430;/*marron*/ text-shadow: 1px 1px 0px #decfbb;/*beige clair*/ padding: 5px 15px; margin: 0 75%; cursor: pointer; } #authform input[type=submit]:hover { color: #553b18;/*marron fonce*/ box-shadow: 0 1px 20px #6f5430 inset;/*marron*/ }
et en local, voici un aperçu de la page :
Il y a clairement un souci sur la droite...Je ne vois pas d'où ça peut venir...
Partager