HTML - Imágenes en tablas...????

 
Vista:
Imágen de perfil de ORLANDO
Val: 4
Ha aumentado su posición en 23 puestos en HTML (en relación al último mes)
Gráfica de HTML

Imágenes en tablas...????

Publicado por ORLANDO (4 intervenciones) el 30/06/2014 04:39:26
Muchas gracias de antemano.

Soy nuevo en esto.

Quisiera desplegar un mensaje de texto con css sobre una imagen que se encuentra en un HTML.

Que debo hacer?

Este es mi HTML:


<html lang="es">
<head>
<meta charset="UTF-8" />
<meta name="description" content="Pagina para mostrar los trabajos realizados">
<title>Trabajos</title>
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="stylesheet" type="text/css" href="css/reset.css">
<link rel="stylesheet" type="text/css" href="css/responsive.css">
</head>
<body>
<header>
<nav id="menu">
<ul>
<li><a href="http://localhost/proyecto don orlando/">INICIO</li></a>
<li><font color="#515151">TRABAJOS</font></li>
<li><a href="">DESCARGAS</li></a>
<li><a href="">MY BLOG</li></a>
<li><a href="">SOCIALES</li></a>
<li><a href="">CONTACTENOS</li></a>
</ul>
</nav>
<div id="cabecera">
<h1>TRABAJOS</h1>
<h2>Sitios webs</h2>
</div>
</header>



<table width="100%" height="100%" style="text-align:center" border="0" cellpadding="0" cellspacing="0">
<thead id="thead">

<tr>
<td align="center" valign="middle"><a href=""><img src="link_1/img1.jpg" width="254" height="256"></a></td>
<td align="center" valign="middle"><a href=""><img src="link_2/img2.jpg" width="254" height="256"></a></td>
<td align="center" valign="middle"><a href=""><img src="link_3/img3.jpg" width="254" height="256"></a></td>
<td align="center" valign="middle"><a href=""><img src="link_4/img4.jpg" width="254" height="256"></a></td>
<td align="center" valign="middle"><a href=""><img src="link_5/img5.jpg" width="254" height="256"></a></td>
</tr>

</thead>
</table>


</body>
</html>

Este es mi css:

* {
margin: 0px;
padding: 0px;
}

/* FONDO DE LA PAGINA */

body {
text-align: center;
background-image: url('fondo.jpg');
background-size: 100%;
background-attachment:fixed; /* deja el fondo fijo */
text-decoration:none; /* separacion de celda de tabla */
}



#menu {
text-align: center;
height: 35px;
background-color: #000000;
box-shadow: 0 2px 3px rgba(0,0,0,0.4);
width: 100%;
position:fixed;
z-index: 101;
}

a:hover {
text-decoration:none;
color: #E9931A;
}

a {
text-decoration:none;
color: #E9E9E9;
}

#menu li {
display: inline-block;
list-style: none;
padding: 5px;
font: 14px arial, verdana, sans-serif;
color: #E9E9E9;
}

#cabecera {
width: auto;
padding: 30px;
text-align: center;
}

h1 {
padding: 10px;
font: 80px arial, verdana, sans-serif;
text-align: center;
color: #E9931A;
}

h2 {
font: 30px Brush Script MT, verdana, sans-serif;
text-align: center;
color: #CCCCCC;
}

/* CAMBIA EL COLOR DE LA BARRA DE DESPLAZAMIENTO */

::-webkit-scrollbar {
width: 5px;
}

::-webkit-scrollbar-track {
-webkit-box-shadow: #000000;
-webkit-border-radius: 5px;
border-radius: 5px;
}

::-webkit-scrollbar-track-piece {
background-color: #000000;
}

::-webkit-scrollbar-thumb {
-webkit-border-radius: 5px;
border-radius: 5px;
background: #EB8A1D;
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
overflow-y:scroll;
}

::-webkit-scrollbar-thumb:window-inactive {
background: #EB8A1D;
}

/* mozila */

::-moz-scrollbar {
width: 5px;
}

::-moz-scrollbar-track {
-moz-box-shadow: #000000;
-moz-border-radius: 5px;
border-radius: 5px;
}

::-moz-scrollbar-track-piece {
background-color: #000000;
}

::-moz-scrollbar-thumb {
-moz-border-radius: 5px;
border-radius: 5px;
background: #EB8A1D;
-moz-box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
overflow-y:scroll;
}

::-moz-scrollbar-thumb:window-inactive {
background: #EB8A1D;
}
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
sin imagen de perfil

Imágenes en tablas...????

Publicado por carlos (2 intervenciones) el 17/07/2014 23:53:23
Orlando te comparto un ejemplo bastante simple de lo que deseas hacer, si quieres realizar algo mas complejo, por ejemplo trasnparencias y algun tipo de animacion te recomendaria usar JQuery.

Espero te sirva:

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
<html lang="es">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="description" content="Pagina para mostrar los trabajos realizados">
<title>Trabajos</title>
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="stylesheet" type="text/css" href="css/reset.css">
<link rel="stylesheet" type="text/css" href="css/responsive.css">
</head>
<body>
<header>
<nav id="menu">
<ul>
<li><a href="http://localhost/proyecto don orlando/">INICIO</li></a>
<li><font color="#515151">TRABAJOS</font></li>
<li><a href="">DESCARGAS</li></a>
<li><a href="">MY BLOG</li></a>
<li><a href="">SOCIALES</li></a>
<li><a href="">CONTACTENOS</li></a>
</ul>
</nav>
<div id="cabecera">
<h1>TRABAJOS</h1>
<h2>Sitios webs</h2>
</div>
</header>
 
 
 
<table width="100%" height="100%" style="text-align:center" border="0" cellpadding="0" cellspacing="0">
<thead id="thead">
 
<tr>
 
	<td align="center" valign="middle">
	<div class="over">
	<a href=""><img src="link_1/img1.jpg" width="254" height="256"></a>
	<span class="tooltip">"Lorem Ipsum es simplemente el texto de relleno de las imprentas y archivos de texto. Lorem Ipsum ha sido el texto de relleno estandar de las industrias desde el ano 1500, cuando un impresor (N. del T. persona que se dedica a la imprenta) desconocido uso una galeria de textos"</span>
	</div>
</td>
 
<td align="center" valign="middle"><a href=""><img src="link_2/img2.jpg" width="254" height="256"></a></td>
<td align="center" valign="middle"><a href=""><img src="link_3/img3.jpg" width="254" height="256"></a></td>
<td align="center" valign="middle"><a href=""><img src="link_4/img4.jpg" width="254" height="256"></a></td>
<td align="center" valign="middle"><a href=""><img src="link_5/img5.jpg" width="254" height="256"></a></td>
</tr>
 
 
</thead>
</table>
 
<p>Move the mouse pointer over this paragraph.</p>
 
</body>
</html>
 
<style type="text/css">
* {
margin: 0px;
padding: 0px;
border: none;
}
 
/* FONDO DE LA PAGINA */
 
body {
text-align: center;
background-image: url('fondo.jpg');
background-size: 100%;
background-attachment:fixed; /* deja el fondo fijo */
text-decoration:none; /* separacion de celda de tabla */
}
 
.over {position: relative; overflow: hidden; width:254px;}
.over span.tooltip {display: none;  height: 256px}
.over:hover span.tooltip {
background: #3C3C3C;
color:#FFFFFF;
font-size:1em;
font-family: georgia;
text-align: justify;
font-variant: small-caps;
left:0;
position:absolute;
bottom:0;
padding-top: 50px;
padding-left: 5px;
padding-right: 5px;
vertical-align:text-bottom;
left:0;
display:block;
z-index:10;
}
 
#menu {
text-align: center;
height: 35px;
background-color: #000000;
box-shadow: 0 2px 3px rgba(0,0,0,0.4);
width: 100%;
position:fixed;
z-index: 101;
}
 
a:hover {
text-decoration:none;
color: #E9931A; 
}
 
a {
text-decoration:none;
color: #E9E9E9;
}
 
#menu li {
display: inline-block;
list-style: none;
padding: 5px;
font: 14px arial, verdana, sans-serif;
color: #E9E9E9; 
}
 
#cabecera {
width: auto;
padding: 30px;
text-align: center;
}
 
h1 {
padding: 10px;
font: 80px arial, verdana, sans-serif;
text-align: center;
color: #E9931A;
}
 
h2 {
font: 30px Brush Script MT, verdana, sans-serif;
text-align: center;
color: #CCCCCC;
}
 
/* CAMBIA EL COLOR DE LA BARRA DE DESPLAZAMIENTO */
 
::-webkit-scrollbar {
width: 5px;
}
 
::-webkit-scrollbar-track {
-webkit-box-shadow: #000000; 
-webkit-border-radius: 5px;
border-radius: 5px;
}
 
::-webkit-scrollbar-track-piece {
background-color: #000000; 
}
 
::-webkit-scrollbar-thumb {
-webkit-border-radius: 5px;
border-radius: 5px;
background: #EB8A1D; 
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
overflow-y:scroll;
}
 
::-webkit-scrollbar-thumb:window-inactive {
background: #EB8A1D; 
}
 
/* mozila */
 
::-moz-scrollbar {
width: 5px;
}
 
::-moz-scrollbar-track {
-moz-box-shadow: #000000; 
-moz-border-radius: 5px;
border-radius: 5px;
}
 
::-moz-scrollbar-track-piece {
background-color: #000000; 
}
 
::-moz-scrollbar-thumb {
-moz-border-radius: 5px;
border-radius: 5px;
background: #EB8A1D; 
-moz-box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
overflow-y:scroll;
}
 
::-moz-scrollbar-thumb:window-inactive {
background: #EB8A1D; 
}
</style>
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