|
caz -> RE: Positioning a layer (7/9/2005 9:59:17)
|
If you want a quick fix then get the Firefox browser with the Web Developer extension and run your page through HTML Tidy to tidy the buggy code. If you are using design view in FP there will be a lot of proprietry code in there and it needs taming to DTD html 1.0 Transitional which is your doctype. This is the resuting code: you'll notice that I have adjusted your positioning like this: <div style="position: absolute; width: 299px; height: 301px; z-index: 1; left: 546px; top: 350px" id="layer1"> to get it to display where you want it to. You can copy and paste the code below to get the cleaned and adjusted version. Because of the errors in your existing code, such as unclosed tags any CSS I added just didn't work out (add the fact that I have almost forgotten how to do a tables layout [;)] and I was going cross eyed.) You really have to get into the habit of looking at the code as well as design view, in fact stay in code view and test in preview in browser. If you do that FP will do as you want. (You could also begin c1sissy's course above and learn CSS, you won't regret it). HTH Carol <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Language" content="en" />
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
<title>TEST PAGE</title>
<link rel="stylesheet" type="text/css" href="edstyles.css" />
<style>
<!--
h3 { margin-top: 0; margin-bottom: 4 }
-->
</style>
<style fprolloverstyle="">A:hover {color: #FF0000; text-decoration: underline}
</style>
<meta name="Microsoft Theme" content="edwhite 1011, default">
<meta name="Microsoft Border" content="tb, default">
</head>
<body>
<div align="center">
<table border="0" cellpadding="0" style="border-collapse: collapse" width="760">
<tbody>
<tr>
<td style="text-align: left" width="450">
<p style="margin-bottom: 0"></p>
<h1 style="margin-bottom: 20px; margin-top:20px">Title<br />Title</h1>
<p class="ldtransitname"><a name="july15"></a>Paragraph Heading 1</p>
<p class="ldtransitdescr">Lorem ipsum dolor sit amet, consectetuer
adipiscing elit. Ut feugiat libero vitae sapien. Donec ultrices nunc quis
turpis. Aenean sed felis a nisl eleifend ornare. Sed iaculis rhoncus libero.
Aenean sollicitudin nibh ut erat. Quisque imperdiet urna non tellus. Nulla
auctor neque a lacus. Quisque rutrum leo a ipsum. Aliquam in nulla nec nulla
cursus malesuada. Morbi mollis accumsan risus. In nonummy. Phasellus ornare,
metus in rutrum luctus, diam quam egestas urna, ac sagittis eros velit at
ligula. Vivamus ullamcorper orci id diam. Vivamus pharetra tellus quis
sapien. Nulla facilisi. Suspendisse sollicitudin tellus non mi. Nunc
bibendum ipsum ac justo. Mauris ac enim sit amet eros nonummy scelerisque.
Fusce eu enim. Nunc risus leo, blandit ac, fringilla a, auctor sed, ante.
<a href="#top">
<img border="0" src="topdkgreen.gif"
width="24" height="14" alt="Top of Page" /></a></p>
<p class="ldtransitname">Paragraph Heading 2</p>
<div style="position: absolute; width: 299px; height: 301px; z-index: 1;
left: 546px; top: 350px" id="layer1">
<div align="center">
<table style="border-collapse: collapse" width="220" cellpadding="4" class="edtablebooks">
<tr>
<td colspan="2">
<p class="ed08bookboxtext">Title<br />Title</p>
<p class="ed08booktitle">Title </p>
<p class="ed08bookauthor">test</p>
</td>
</tr>
<tr>
<td style="text-align: center" colspan="2">
<div align="center">
<table border="1" style="border-collapse: collapse" width="89"
cellpadding="0" bgcolor="#C0C0C0" height="140">
<tr>
<td> </td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td width="50%">
Click to jump <br />to this book on <br />Amazon.com
</td>
<td style="text-align: center" class="ed08bookbox" width="50%">
In Canada jump <br />to this book on <br />Amazon.ca
</td>
</tr>
</table>
</div>
</div>
<p class="ldtransitdescr"><font color="#0000FF">The box should be in line
with the top of this line.</font><font color="#FF0000"> </font>Lorem ipsum dolor sit amet, consectetuer
adipiscing elit. Ut feugiat libero vitae sapien. Donec ultrices nunc quis
turpis. Aenean sed felis a nisl eleifend ornare. Sed iaculis rhoncus libero.
Aenean sollicitudin nibh ut erat. Quisque imperdiet urna non tellus. Nulla
auctor neque a lacus. Quisque rutrum leo a ipsum. Aliquam in nulla nec nulla
cursus malesuada. Morbi mollis accumsan risus. In nonummy. Phasellus ornare,
metus in rutrum luctus, diam quam egestas urna, ac sagittis eros velit at
ligula. Vivamus ullamcorper orci id diam. Vivamus pharetra tellus quis
sapien. Nulla facilisi. Suspendisse sollicitudin tellus non mi. Nunc
bibendum ipsum ac justo. Mauris ac enim sit amet eros nonummy scelerisque.
Fusce eu enim. Nunc risus leo, blandit ac, fringilla a, auctor sed, ante. <a href="#top">
<img border="0" src="topdkgreen.gif" width="24" height="14"
alt="Top of Page" /></a></p>
<p class="ldtransitname">Paragraph Heading 3</p>
<p class="ldtransitdescr">Lorem ipsum dolor sit amet, consectetuer
adipiscing elit. Ut feugiat libero vitae sapien. Donec ultrices nunc quis
turpis. Aenean sed felis a nisl eleifend ornare. Sed iaculis rhoncus libero.
Aenean sollicitudin nibh ut erat. Quisque imperdiet urna non tellus. Nulla
auctor neque a lacus. Quisque rutrum leo a ipsum. Aliquam in nulla nec nulla
cursus malesuada. Morbi mollis accumsan risus. In nonummy. Phasellus ornare,
metus in rutrum luctus, diam quam egestas urna, ac sagittis eros velit at
ligula. Vivamus ullamcorper orci id diam. Vivamus pharetra tellus quis
sapien. Nulla facilisi. Suspendisse sollicitudin tellus non mi. Nunc
bibendum ipsum ac justo. Mauris ac enim sit amet eros nonummy scelerisque.
Fusce eu enim. Nunc risus leo, blandit ac, fringilla a, auctor sed, ante.
<a href="#top">
<img border="0" src="topdkgreen.gif"
width="24" height="14" alt="Top of Page" /></a></p>
<p> </p>
</td>
<td width="10" align="center" valign="top">
</td>
<td width="300" align="center" valign="top" height="100%">
<p></p>
</td>
</tr>
</tbody>
</table>
<p></p>
<script type="text/javascript"><!--
google_ad_client = "pub-5341371460269190";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text";
google_ad_channel ="";
google_color_border = "999900";
google_color_bg = "FFFFDB";
google_color_link = "CC0000";
google_color_url = "0000CC";
google_color_text = "006600";
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
</body>
</html>
|
|
|
|