HTML - Contenido HTML en un slide

 
Vista:

Contenido HTML en un slide

Publicado por dostiroslibres (1 intervención) el 03/03/2015 03:11:24
Vereis, estoy haciendo unas fichas de jugadores para un proyecto que tengo en mente. Tengo el código ya modificado, tanto el css como el html, que os dejo a continuación. El tema es que quiero hacer que de las 3 fichas que esten juntas, meter código de forma que en lugar de aparecer las 3 fichas de los 3 jugadores seguidas haga una especie de slide con un par de flechas a la izquierda y la derecha de la ficha que aparezca, de manera que pasas de una a otra cuando tu quieras.

Se que el código habría que meterlo entre las columnas de la tabla (que en este caso corresponde a cada una de las ficha de los jugadores).

Aquí os dejo ambos a ver si me podeis echar una mano:
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
<div id="pricing-table" class="clear">
<div class="plan">
<h3>Jahill Okafor<span><img src="http://i288.photobucket.com/albums/...n></h3>
<a class="signup" href="">VER FICHA</a>
<ul>
<li><b>Edad:</b> 19</li>
<li><b>College:</b> Duke</li>
<li><b>Posición NBA:</b> C</li>
<li><b>Estadísticas:</b> 18.3 Pts 9.4 Rbt</li>	
</ul> 
</div><

<div class="plan">
<h3>Karl Towns<span><img src="http://i288.photobucket.com/albums/...n></h3>
<a class="signup" href="">VER FICHA</a>
<ul>
<li><b>Edad</b> 19</li>
<li><b>College:</b> Kentucky</li>
<li><b>Posición NBA:</b> PF/C</li>
<li><b>Estadísticas:</b> 9.3 Pts 6.8	Rbt</li>
</ul>
</div>
<div class="plan">
<h3>D'Angelo Russell<span><img src="http://i288.photobucket.com/albums/...n></h3>
<a class="signup" href="">VER FICHA</a>
<ul>
<li><b>Edad</b> 19</li>
<li><b>College:</b> Ohio State</li>
<li><b>Posición NBA:</b> PG</li>
<li><b>Estadísticas:</b> 19 Pts 5.3	Ast</li>	
</ul>
</div> 
</div>

y 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
body{
background: #30303 0;
}
 
#pricing-table {
margin: 100px auto;
text-align: center;
width: 892px; /* total computed width = 222 x 3 + 226 */
}
 
#pricing-table .plan {
font: 12px 'Lucida Sans', 'trebuchet MS', Arial, Helvetica;
text-shadow: 0 1px rgba(255,255,255,.8);
background: #fff; 
border: 1px solid #ddd;
color: #333 ;
padding: 20px;
width: 180px; /* plan width = 180 + 20 + 20 + 1 + 1 = 222px */
float: left;
position: relative;
}
 
#pricing-table #most-popular {
z-index: 2;
top: -13px;
border-width: 3px;
padding: 30px 20px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
-moz-box-shadow: 20px 0 10px -10px rgba(0, 0, 0, .15), -20px 0 10px -10px rgba(0, 0, 0, .15);
-webkit-box-shadow: 20px 0 10px -10px rgba(0, 0, 0, .15), -20px 0 10px -10px rgba(0, 0, 0, .15);
box-shadow: 20px 0 10px -10px rgba(0, 0, 0, .15), -20px 0 10px -10px rgba(0, 0, 0, .15);
}
 
#pricing-table .plan:nth-child(1) {
-moz-border-radius: 5px 0 0 5px;
-webkit-border-radius: 5px 0 0 5px;
border-radius: 5px 0 0 5px;
}
 
#pricing-table .plan:nth-child(4) {
-moz-border-radius: 0 5px 5px 0;
-webkit-border-radius: 0 5px 5px 0;
border-radius: 0 5px 5px 0;
}
 
/* --------------- */
 
#pricing-table h3 {
font-size: 20px;
font-weight: normal;
padding: 20px;
margin: -20px -20px 50px -20px;
background-color: #eee;
background-image: -moz-linear-gradient(#fff,#eee);
background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#eee)); 
background-image: -webkit-linear-gradient(#fff, #eee);
background-image: -o-linear-gradient(#fff, #eee);
background-image: -ms-linear-gradient(#fff, #eee);
background-image: linear-gradient(#fff, #eee);
}
 
#pricing-table #most-popular h3 {
background-color: #ddd;
background-image: -moz-linear-gradient(#eee,#ddd);
background-image: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#ddd)); 
background-image: -webkit-linear-gradient(#eee, #ddd);
background-image: -o-linear-gradient(#eee, #ddd);
background-image: -ms-linear-gradient(#eee, #ddd);
background-image: linear-gradient(#eee, #ddd);
margin-top: -30px;
padding-top: 30px;
-moz-border-radius: 5px 5px 0 0;
-webkit-border-radius: 5px 5px 0 0;
border-radius: 5px 5px 0 0;
}
 
#pricing-table .plan:nth-child(1) h3 {
-moz-border-radius: 5px 0 0 0;
-webkit-border-radius: 5px 0 0 0;
border-radius: 5px 0 0 0;
}
 
#pricing-table .plan:nth-child(4) h3 {
-moz-border-radius: 0 5px 0 0;
-webkit-border-radius: 0 5px 0 0;
border-radius: 0 5px 0 0;
}
 
#pricing-table h3 span {
display: block;
font: bold 25px/100px Georgia, Serif;
color: #777 ;
background: #fff;
border: 5px solid #fff;
height: 100px;
width: 100px;
margin: 10px auto -65px;
-moz-border-radius: 100px;
-webkit-border-radius: 100px;
border-radius: 100px;
-moz-box-shadow: 0 5px 20px #ddd inset, 0 3px 0 #999 inset;
-webkit-box-shadow: 0 5px 20px #ddd inset, 0 3px 0 #999 inset;
box-shadow: 0 5px 20px #ddd inset, 0 3px 0 #999 inset;
}
 
/* --------------- */
 
#pricing-table ul {
margin: 20px 0 0 0;
padding: 0;
list-style: none;
}
 
#pricing-table li {
border-top: 1px solid #ddd;
padding: 10px 0;
}
 
/* --------------- */
 
#pricing-table .signup {
position: relative;
padding: 8px 20px;
margin: 20px 0 0 0;
color: #fff;
font: bold 14px Arial, Helvetica;
text-transform: uppercase;
text-decoration: none;
display: inline-block;
background-color: #cc4728;
background-image: -moz-linear-gradient(#cc4728, #cc4728);
background-image: -webkit-gradient(linear, left top, left bottom, from(#72ce3f), to(#62bc30)); 
background-image: -webkit-linear-gradient(#cc4728, #cc4728);
background-image: -o-linear-gradient(#cc4728, #cc4728);
background-image: -ms-linear-gradient(#cc4728, #cc4728);
background-image: linear-gradient(#72ce3f, #62 bc30);
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
text-shadow: 0 1px 0 rgba(0,0,0,.3);
-moz-box-shadow: 0 1px 0 rgba(255, 255, 255, .5), 0 2px 0 rgba(0, 0, 0, .7);
-webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, .5), 0 2px 0 rgba(0, 0, 0, .7);
box-shadow: 0 1px 0 rgba(255, 255, 255, .5), 0 2px 0 rgba(0, 0, 0, .7);
}
 
#pricing-table .signup:hover {
background-color: #cc4728;
background-image: -moz-linear-gradient(#cc4728, #cc4728);
background-image: -webkit-gradient(linear, left top, left bottom, from(#cc4728), to(#cc4728)); 
background-image: -webkit-linear-gradient(#cc4728, #cc4728);
background-image: -o-linear-gradient(#cc4728, #cc4728);
background-image: -ms-linear-gradient(#cc4728, #cc4728);
background-image: linear-gradient(#cc4728, #cc4728); 
}
 
#pricing-table .signup:active, #pricing-table .signup:focus {
background: #cc4728; 
top: 2px;
-moz-box-shadow: 0 0 3px rgba(0, 0, 0, .7) inset;
-webkit-box-shadow: 0 0 3px rgba(0, 0, 0, .7) inset;
box-shadow: 0 0 3px rgba(0, 0, 0, .7) inset;
}
 
/* --------------- */
 
.clear:before, .clear:after {
content:"";
display:table
}
 
.clear:after {
clear:both
}
 
.clear {
zoom:1
}

Gracias y un saludo!
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