CSS - posicionamiento de div automaticos

 
Vista:
sin imagen de perfil

posicionamiento de div automaticos

Publicado por andres (3 intervenciones) el 03/03/2014 22:04:52
Buenas tardes a todos quisiera saber si me pueden colaborar en como darle a los div un modo automatico para que aparezca de nuevo tal como los tengo debajo de los primeros ya que a traves de php cargo los datos y necesito que se me impriman n cantidad de veces gracias aqui dejo el codigo


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 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: 624
Oro
Ha mantenido su posición en CSS (en relación al último mes)
Gráfica de CSS

posicionamiento de div automaticos

Publicado por xve (490 intervenciones) el 04/03/2014 07:49:35
Hola Andres, únicamente has dejado el código CSS... pero no sabemos a que capas hacen referencia, ni como están posicionadas en el documento... necesitaríamos visualizar el código html o parte del mismo.

De todas maneras, no me queda muy clara tu duda... si nos puedes comentar con mas detalle?
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

posicionamiento de div automaticos

Publicado por andres (3 intervenciones) el 04/03/2014 23:43:28
mira es que yo estoy cargando unos datos a traves de un foreach pero ya me di cuenta que las posiciones fijas que le estoy dando al div hacen que no se vuelvan a pintar uno debajo de otro si no que se pinta uno encima de otro si me hago entender y no se como darle posicion sin que se pinte uno encima de otro
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

posicionamiento de div automaticos

Publicado por Jorge (1 intervención) el 05/03/2014 00:41:54
Como se llama la clase que usas para organizar a las etiquetas div resultantes de tu recorrido?

en teoria, si creas los div con la misma clase asignada no deberian darte problema almenos que uses el atributo possition. trata removiendolo de tu clase, para que enlugar de mandarlo a cierto lugar se creen en cascada.
Neceseitaria ver tu html, para ver que esta pasando y saber quue clase usas para tu recorrido.
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

posicionamiento de div automaticos

Publicado por andres (3 intervenciones) el 05/03/2014 02:55:09
listo hay va el html

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
<?php
	require_once('php/prospecto_modelo.php');
	$prospecto1 = new Prospecto();
	$listado = $prospecto1->listaProspecto();
?>
<html>
	<head>
		<title>Listado de Prospectos</title>
		<script language="javascript" type="text/javascript" src="jquery.js"> </script>
		<script type="text/javascript" language="javascript" src="funcionesJquery.js"></script>
		<link rel="stylesheet" type="text/css" href="estiloP.css" />
		<script language="javascript">
			$(document).ready(Inicio); //funcion inicial de JQuery
		</script>
	</head>
	<body>
 
 
 
			<?php foreach($listado as $fila){ ?>
		<div class="contenedor">
		<div class="circular">
			<label><center>1</center></label>
		</div>
			<div class="foto">
			<IMG SRC="<?php echo $fila['campo24'];  ?>" class="ajustar"/>
			</div>
			<div class="info">
			<table class="nombre" align="center">
				<tr>
					<td><b><?php echo $fila['nombres'] ?></b> </td>
				</tr>
				<tr>
					<td><?php echo $fila['campo3'] ?> </td>
				</tr>
		</table>
		<table>
				<tr>
					<td> <IMG SRC="images/tel.png"/></td>
					<td> <?php echo $fila['campo5'] ?> </td>
				</tr>
				<tr>
					<td><IMG SRC="images/cel.png"></td>
					<td> <?php echo $fila['campo6'] ?> </td>
				</tr>
				<tr>
					<td> <IMG SRC="images/dir.png"> </td>
					<td> <?php echo $fila['campo4'] ?> </td>
				</tr>
				<tr>
					<td> <IMG SRC="images/mail.png"> </td>
					<td> <?php echo $fila['campo7'] ?> </td>
				</tr>
		</table>
			</div>
			<div class="diasR">
				<center><IMG SRC="images/torta.jpg" /></center>
				<center><label>Quedan 5 dias</label></center>
			</div>
 
			<div class="mapa">
	<iframe  frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.es/?ie=UTF8&amp;ll=3.444883,-76.437378&amp;spn=0.834815,1.352692&amp;t=m&amp;z=10&amp;output=embed"></iframe><br />
			</div>
 
			<div class="referido">
				<IMG SRC="images/referido.png" class="Adias" title="<?php echo "Referido"; ?>"/>
			</div>
 
			<div class="recordatorio">
				<IMG SRC="images/recordatorio.png" class="Arecordatorio" title="<?php echo "Referido"; ?>"/>
			</div>
 
			<div class="comentarios">
				<div class="comentariado" >
					<?php echo $fila['comentario']; ?>
				</div>
			</div>
 
			<div class="cajaComunicacion">
            	<label> <center>Zona comunicacion</center></label>
			</div>
			<div class="cajaR">
                <label> <center>Zona Recordatorio</center></label>
  			</div>
  			</div>
<!--<hr size="1px" color="red" />-->
			<?php } ?>
 
	</body>
</html>
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