vml79
03-06-2008, 01:33 PM
hello,
i have a problem with this code :
<HTML>
<HEAD>
<STYLE type=text/css>.centerdiv {
TEXT-ALIGN: center
}
.centerdiv>div{
MARGIN: 0px auto;
}
</STYLE>
</SCRIPT>
</HEAD>
<BODY>
<DIV class=centerdiv>
<div id=Layer0 style="z-index: 0; position: relative;"> <IMG height=600 src="img.jpg" width=780>
<DIV id=Layer1 style="Z-INDEX: 1; LEFT: 283px; WIDTH: 117px; POSITION: absolute; TOP: 479px; HEIGHT: 44px;">text 1</DIV>
<DIV id=Layer2 style="Z-INDEX: 2; LEFT: 50px; WIDTH: 349px; POSITION: absolute; TOP: 218px; HEIGHT: 115px;">text 2</DIV>
</div>
</DIV>
</BODY>
</HTML>
in internet explorer looks like i wanted to (layer0 centered and layers 1 and 2 related to 0) but in firefox layer 0 is centered and layers 1 and 2 to left...
i read and read for two days and i can't find a solution for this so pls if anyone can help me
i have a problem with this code :
<HTML>
<HEAD>
<STYLE type=text/css>.centerdiv {
TEXT-ALIGN: center
}
.centerdiv>div{
MARGIN: 0px auto;
}
</STYLE>
</SCRIPT>
</HEAD>
<BODY>
<DIV class=centerdiv>
<div id=Layer0 style="z-index: 0; position: relative;"> <IMG height=600 src="img.jpg" width=780>
<DIV id=Layer1 style="Z-INDEX: 1; LEFT: 283px; WIDTH: 117px; POSITION: absolute; TOP: 479px; HEIGHT: 44px;">text 1</DIV>
<DIV id=Layer2 style="Z-INDEX: 2; LEFT: 50px; WIDTH: 349px; POSITION: absolute; TOP: 218px; HEIGHT: 115px;">text 2</DIV>
</div>
</DIV>
</BODY>
</HTML>
in internet explorer looks like i wanted to (layer0 centered and layers 1 and 2 related to 0) but in firefox layer 0 is centered and layers 1 and 2 to left...
i read and read for two days and i can't find a solution for this so pls if anyone can help me