Comunidad de diseño web y desarrollo en internet online

¿Es éste método para posicionar es válido?

Citar            
MensajeEscrito el 19 Oct 2005 02:01 am
Tengo un .jpg centrado y sobre él quise ubicar un archivo .swf,
para eso utilicé el siguiente código...


Código :

<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Menta</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css"> body { 
  text-align:center;
  } 
#contenedor { 
  margin-top:-18px;
  margin-right:auto; 
  margin-bottom: 0; 
  margin-left:-22; 
  }</style>
 <style type="text/css"> #sh {
position: absolute;
  margin-top:120px;
  margin-right:auto; 
  margin-bottom: 0; 
  margin-left:-600px; 
}
</style>
</head>
<body>
<div id="contenedor"> <img src="tal.jpg"  width="778" height="600" border=0 usemap="#Imagen">
  <map name="Imagen">
    <area shape="rect" coords="40,600,168,683" href="tal.htm" alt="LLO" onClick='this.target = "popup"; window.open("", "popup", "toolbar=0,width=410,height=236,resizable=no,left=174,top=165")'>
  </map>
    <div id="sh"> 
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="418" height="237">
    <param name="movie" value="tal.swf">
    <param name="quality" value="high">
    <embed src="tal.swf" width="418" height="237" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" ></embed></object></div>
 </div>
</body>
</html>


Lo cierto es que tuve que utilizar un (margin-left:-600px; ) para el .swf
Viéndolo en distintas resoluciones en el explorer ésta fue la única manera de ubicarlo exactamente encima de la parte del .jpg que quería
Es válida ésta forma o existe otra mejor

Seltzer

Por seltzer

1 de clabLevel



Genero:Masculino  

msie
Citar            
MensajeEscrito el 19 Oct 2005 02:28 am
para comenzar, un par de recomendaciones

1) los tags se abren y se cierran cuando es necesario hacerlo. poner, por ejemplo

Código :

<b>hola</b> <b>amigos</b>

es lo mismo que poner

Código :

<b>hola amigos</b>

por lo tanto es innecesario poner 2 tags style juntos.

2) el tag <area> es parte del html más viejo que pueda exisitir, incluso la w3c eliminará el tag img para la nueva versión de html

ahora sí, sobre tu pregunta.... no puedo mentir, no he visto el código pero para empezar NO es necesario y mucho menos recomendado utilizar la propiedad position, tal vez por ahí podrías comenzar.

además, hay más navegadores que iexploiter, ya intentaste verlo con éstos?
te recomiendo cheques los tutoriales de css en este mismo sitio

un saludo

Por fael

BOFH

2443 de clabLevel

3 tutoriales
2 articulos

 

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.