PHP - iteraccion foreach y div php

 
Vista:
sin imagen de perfil

iteraccion foreach y div php

Publicado por andres (63 intervenciones) el 03/03/2014 19:30:38
Tengo un proyecto dode cargo los datos desde myslq en unos dias por medio de foreach pero cuando va a imprimir mas de un dato lo imprime encima del otro no debajo si no encima que puede ser?
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder
Imágen de perfil de xve
Val: 3.943
Oro
Ha mantenido su posición en PHP (en relación al último mes)
Gráfica de PHP

iteraccion foreach y div php

Publicado por xve (6935 intervenciones) el 03/03/2014 20:35:40
Hola Andres, lo único que se me ocurre, es que sea algo por los estilos, que sea una capa fija en una posición...

La verdad es que sin ver el código es muy difícil de ayudar...
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
sin imagen de perfil

iteraccion foreach y div php

Publicado por andres (63 intervenciones) el 03/03/2014 21:01:45
Pues estuve investigando y es por las posiciones fijas que le di a los div en el css pero entonces como les doy posicion dinamica que me aparezca uno debajo del otro pero en el mismo oreden?
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
sin imagen de perfil

iteraccion foreach y div php

Publicado por andres (63 intervenciones) el 03/03/2014 21:05:34
mira hay esta la hoja de estilos y el formulario

este es el css

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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
@charset "UTF-8";
 
.foto{
list-style: none;
 
width: 6%;
height: 12%;
 
margin: 1.5% 3%;
border:3px solid #f4f4f4;
background:rgba(255,255,255,.5);
position: fixed;
 
-webkit-border-radius:10px;
-moz-border-radius:10px;
border-radius:10px;
-webkit-box-shadow: 0 0 2px #aaa;
-moz-box-shadow: 0 0 2px #aaa;
box-shadow: 0 0 2px #aaa;
}
 
.ajustar{
list-style: none;
 
width: 6%;
height: 12%;
 
 
position: fixed;
 
-webkit-border-radius:10px;
-moz-border-radius:10px;
border-radius:10px;
-webkit-box-shadow: 0 0 2px #aaa;
-moz-box-shadow: 0 0 2px #aaa;
box-shadow: 0 0 2px #aaa;
}
 
.circular {
width: 30px;
height: 30px;
border-radius: 15px;
border:3px solid #f4f4f4;
background:rgba(255,255,255,.5);
position: fixed;
	-webkit-border-radius: 15px; -moz-border-radius: 15px;
}
 
.info{
	list-style: none;
 
width: 18%;
height: 30%;
 
margin: 1.5% 10.5%;
border:3px solid #f4f4f4;
background:rgba(255,255,255,.5);
position: fixed;
 
-webkit-border-radius:10px;
-moz-border-radius:10px;
border-radius:10px;
-webkit-box-shadow: 0 0 2px #aaa;
-moz-box-shadow: 0 0 2px #aaa;
box-shadow: 0 0 2px #aaa;
 
}
 
.diasR{
list-style: none;
 
width: 6%;
height: 14%;
 
margin: 8.5% 3%;
border:3px solid #f4f4f4;
background:rgba(255,255,255,.5);
position: fixed;
 
-webkit-border-radius:10px;
-moz-border-radius:10px;
border-radius:10px;
-webkit-box-shadow: 0 0 2px #aaa;
-moz-box-shadow: 0 0 2px #aaa;
box-shadow: 0 0 2px #aaa;
}
 
.mapa{
list-style: none;
 
width: 22%;
height: 23%;
 
margin: 5% 30%;
border:3px solid #f4f4f4;
background:rgba(255,255,255,.5);
position: fixed;
 
-webkit-border-radius:10px;
-moz-border-radius:10px;
border-radius:10px;
-webkit-box-shadow: 0 0 2px #aaa;
-moz-box-shadow: 0 0 2px #aaa;
box-shadow: 0 0 2px #aaa;
}
 
.referido{
list-style: none;
 
width: 3%;
height: 5%;
 
margin: 1.5% 30%;
border:3px solid #f4f4f4;
background:rgba(255,255,255,.5);
position: fixed;
 
-webkit-border-radius:10px;
-moz-border-radius:10px;
border-radius:10px;
-webkit-box-shadow: 0 0 2px #aaa;
-moz-box-shadow: 0 0 2px #aaa;
box-shadow: 0 0 2px #aaa;
}
 
.Adias{
list-style: none;
 
width: 3%;
height: 5%;
 
position: fixed;
 
-webkit-border-radius:10px;
-moz-border-radius:10px;
border-radius:10px;
-webkit-box-shadow: 0 0 2px #aaa;
-moz-box-shadow: 0 0 2px #aaa;
box-shadow: 0 0 2px #aaa;
}
.recordatorio{
list-style: none;
 
width: 3%;
height: 5%;
 
margin: 1.5% 37%;
border:3px solid #f4f4f4;
background:rgba(255,255,255,.5);
position: fixed;
 
-webkit-border-radius:10px;
-moz-border-radius:10px;
border-radius:10px;
-webkit-box-shadow: 0 0 2px #aaa;
-moz-box-shadow: 0 0 2px #aaa;
box-shadow: 0 0 2px #aaa;
}
 
.Arecordatorio{
list-style: none;
 
width: 3%;
height: 5%;
 
position: fixed;
 
-webkit-border-radius:10px;
-moz-border-radius:10px;
border-radius:10px;
-webkit-box-shadow: 0 0 2px #aaa;
-moz-box-shadow: 0 0 2px #aaa;
box-shadow: 0 0 2px #aaa;
}
.comentarios{
list-style: none;
overflow-y: scroll;
width: 49%;
height: 20%;
 
margin: 17% 3%;
border:3px solid #f4f4f4;
background:rgba(255,255,255,.5);
position: fixed;
 
-webkit-border-radius:10px;
-moz-border-radius:10px;
border-radius:10px;
-webkit-box-shadow: 0 0 2px #aaa;
-moz-box-shadow: 0 0 2px #aaa;
box-shadow: 0 0 2px #aaa;
 
}
#comentariado{
 
 
width: 46%;
height: 8%;
margin: 0.5% 1%;
background-color: rgb(55,22,11);
border:3px solid #f4f4f4;
background:rgba(255,255,255,.5);
position: fixed;
 
-webkit-border-radius:10px;
-moz-border-radius:10px;
border-radius:10px;
-webkit-box-shadow: 0 0 2px #aaa;
-moz-box-shadow: 0 0 2px #aaa;
box-shadow: 0 0 2px #aaa;
}
 
.cajaComunicacion{
  width:13%;
  height: 21%;
 
 
  margin:1% 55%;
  padding:10px 50px;
  border:3px solid #f4f4f4;
  background:rgba(255,255,255,.5);
  position: fixed;
 
  -webkit-border-radius:10px;
  -moz-border-radius:10px;
  border-radius:10px;
 
  -webkit-box-shadow: 0 0 2px #aaa;
 
 
  -moz-box-shadow: 0 0 2px #aaa;
  box-shadow: 0 0 2px #aaa;
}
 
.cajaR{
  width:13%;
  height: 21%;
 
 
  margin:14% 55%;
  padding:10px 50px;
  border:3px solid #f4f4f4;
  background:rgba(255,255,255,.5);
  position: fixed;
 
  -webkit-border-radius:10px;
  -moz-border-radius:10px;
  border-radius:10px;
 
  -webkit-box-shadow: 0 0 2px #aaa;
 
 
  -moz-box-shadow: 0 0 2px #aaa;
  box-shadow: 0 0 2px #aaa;
}
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
Imágen de perfil de xve
Val: 3.943
Oro
Ha mantenido su posición en PHP (en relación al último mes)
Gráfica de PHP

iteraccion foreach y div php

Publicado por xve (6935 intervenciones) el 03/03/2014 22:23:04
Hola Andres, únicamente nos has adjuntado la hoja de estilos, te faltaría el formulario para poder probarlo.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar