Bonjour;
Je n'arrive pas a afficher au centre de la page un formulaire suivi d'un calendrier sur la même page.
ça fait des heures que je galère.
J’apprécie votre aide et commentaires.
Cordialement
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171 #ui-datepicker-div { position: absolute; left: 50%; top: 50%; margin-left: -96px; margin-top: -73px; } #container { height:100%; width:70%; margin:auto; } #first { background-color:#ff0000; height:50px; } #second { float:left; background-color:#00ff00; width:30%; height:100%; } #third { float:left; background-color:#0000ff; width:70%; height:100%; } ml, body, h1, form, fieldset, legend, ol, li { margin: 0; padding: 0; } body { background: #ffffff; color: #111111; font-family: Georgia, "Times New Roman", Times, serif; padding: 20px; } form#paiement { background: #9cbc2c; -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; padding: 20px; width: 400px; } form#paiement { background: #9cbc2c; -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; padding: 20px; width: 400px; } form#paiement fieldset { border: none; margin-bottom: 10px; } form#paiement fieldset:last-of-type { margin-bottom: 0; } form#paiement legend { color: #384313; font-size: 16px; font-weight: bold; padding-bottom: 10px; text-shadow: 0 1px 1px #c0d576; } form#paiement > fieldset > legend:before { content: "Étape " counter(fieldsets) " : "; counter-increment: fieldsets; } form#paiement fieldset fieldset legend { color: #111111; font-size: 13px; font-weight: normal; padding-bottom: 0; } form#paiement ol li { background: #b9cf6a; background: rgba(255,255,255,.3); border-color: #e3ebc3; border-color: rgba(255,255,255,.6); border-style: solid; border-width: 2px; -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; line-height: 30px; list-style: none; padding: 5px 10px; margin-bottom: 2px; } form#paiement ol ol li { background: none; border: none; float: left; } form#paiement label { float: left; font-size: 13px; width: 110px; } form#paiement fieldset fieldset label { background:none no-repeat left 50%; line-height: 20px; padding: 0 0 0 30px; width: auto; } form#paiement label[for=visa] { background-image: url(visa.gif); } form#paiement label[for=amex] { background-image: url(amex.gif); } form#paiement label[for=mastercard] { background-image: url(mastercard.gif); } form#paiement fieldset fieldset label:hover { cursor: pointer; } form#paiement input:not([type=radio]), form#paiement textarea { background: #ffffff; border: none; -moz-border-radius: 3px; -webkit-border-radius: 3px; -khtml-border-radius: 3px; border-radius: 3px; font: italic 13px Georgia, "Times New Roman", Times, serif; outline: none; padding: 5px; width: 200px; } form#paiement input:not([type=submit]):focus, form#paiement textarea:focus { background: #eaeaea; } form#paiement input[type=radio] { float: left; margin-right: 5px; } orm#paiement button { background: #384313; border: none; -moz-border-radius: 20px; -webkit-border-radius: 20px; -khtml-border-radius: 20px; border-radius: 20px; color: #ffffff; display: block; font: 18px Georgia, "Times New Roman", Times, serif; letter-spacing: 1px; margin: auto; padding: 7px 25px; text-shadow: 0 1px 1px #000000; text-transform: uppercase; } form#paiement button:hover { background: #1e2506; cursor: pointer; }
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
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 <!DOCTYPE html> <html> <head> <title>CSS Test</title> <link rel="stylesheet" type="text/css" href="myfirst.css" /> <body> <img style="width: 1303px; height: 162px;" alt="calendario" src="file:///C:\Users\hmech\Desktop\TestWeb\calendar-header-960x250.jpg"><br> </head> <body> <form id=paiement> <link rel="stylesheet" href="style.css" /> <fieldset> <legend>Votre identité</legend> <ol> <li> <label for=nom>Nom</label> <input id=nom name=nom type=text placeholder="Prénom et nom" required> </li> <li> <label for=email>Email</label> <input id=email name=email type=email placeholder="exemple@domaine.com" required> </li> <li> <label for=telephone>Téléphone</label> <input id=telephone name=telephone type=tel placeholder="" required> </li> </ol> </fieldset> <fieldset> <ol> <li> <label for=adresse>Adresse</label> <textarea id=adresse name=adresse rows=3 required></textarea> </li> <li> <label for=Ville>Ville</label> <input id=ville name=ville type=text required> </li> </ol> </form> <script src="http://code.jquery.com/jquery-1.11.3.js"></script> <script src="http://code.jquery.com/ui/1.10.1/jquery-ui.js"></script> <script> $(function() { $( "#datepicker" ).datepicker(); }); </script> <body> <p>Fecha: <input type="text" id="datepicker"></p> </body> <script> $.datepicker.regional['Es'] = { closeText: 'Cerrar', prevText: '<Ant', nextText: 'Sig>', currentText: 'Hoy', monthNames: ['Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre'], monthNamesShort: ['Ene','Feb','Mar','Abr', 'May','Jun','Jul','Ago','Sep', 'Oct','Nov','Dic'], dayNames: ['Domingo', 'Lunes', 'Martes', 'Miércoles', 'Jueves', 'Viernes', 'Sábado'], dayNamesShort: ['Dom','Lun','Mar','Mié','Juv','Vie','Sáb'], dayNamesMin: ['Do','Lu','Ma','Mi','Ju','Vi','Sá'], weekHeader: 'Sm', dateFormat: 'dd/mm/yy', firstDay: 1, isRTL: false, showMonthAfterYear: false, yearSuffix: '' }; $.datepicker.setDefaults($.datepicker.regional['es']); </div> </body> </html> </script>
Partager