G
Guest
Is there a way to position a layer with reference to the table it is in
rather than the whole page?
Thank you for your help!
rather than the whole page?
Thank you for your help!
shape",
the HTML on this page was written completely by FrontPage.
Could you please share with me what the real solution is?
Murray said:Somebody would have had to muck about in the code to have it look like that,
though. FP could not write such distressed code.
Yes, but you have to clean the page first, otherwise the real solution may
not work properly. I am assuming that you have cleaned it as I
recommended....
The next thing you will have to do is to get the layer out of the table
cell, where you told FP to put it. So, change this -
<td colspan="2" width="670" height="72">
<div style="position: absolute; width: 189px; height: 42px; z-index: 1;
left: 168px; top: 424px" id="layer1">
<h3 align="center"><font color="#FF0000">*** Coming Soon!
***</font></h3>
</div>
<a href="../classes/fourth_grade/fourth_grade.htm">
<img border="0" src="images/4th_gr0804_01.gif" width="670" height="72"
id="img10" onmouseout="FP_swapImgRestore()"
onmouseover="FP_swapImg(1,1,/*id*/'img10',/*url*/'images/4th_gr0804_01-over.gif')"></a></td>
to this -
<td colspan="2" width="670" height="72">
<a href="../classes/fourth_grade/fourth_grade.htm">
<img border="0" src="images/4th_gr0804_01.gif" width="670" height="72"
id="img10" onmouseout="FP_swapImgRestore()"
onmouseover="FP_swapImg(1,1,/*id*/'img10',/*url*/'images/4th_gr0804_01-over.gif')"></a></td>
(putting absolutely positioned page elements into table cells is always a
bad idea)
and then change this -
</body>
to this -
<div style="position: absolute; width: 189px; height: 42px; z-index: 1;
left: 168px; top: 424px" id="layer1">
<h3 align="center"><font color="#FF0000">*** Coming Soon!
***</font></h3>
</div>
</body>
Finally, you would need do the following.
Change this -
</head>
to this -
<style type="text/css">
<!--
body { text-align:center; color:#CCC; }
#wrapper { text-align:left; width:720px; margin:0 auto;position:relative; }
-->
</style>
</head>
change this -
<body ...>
to this -
<body ...>
<div id="wrapper">
and this -
</body>
to this -
</div><!-- /wrapper -->
</body>
Now, use FP's design view to align the layer exactly where you want it, and
that's where it'll stay.
If you are not up to all these changes, I have done them for you -
http://www.murraytestsite.com/Dpage.txt
Browse to that link, copy the entire chunk of code and paste it into your
page (overwriting everything).
If you want to see how the page will look after you have done that, go
here -
http://www.murraytestsite.com/Dpage.html
(you may need to reposition the layer)