Solved

Layer problem(HTML or Javascript)

Posted on 2001-08-23
2
184 Views
Last Modified: 2012-05-04
Hi all experts

I have a problem with a html-document in Netscape.

Here's the code:

<HTML>
<HEAD>
<style type="text/css">
#errormessage { top: 120px; left: 325px; position: absolute;  visiblity: visible; }
#message { top: 360px; left: 150px; position: absolute; visiblity: visible; }                              
p { font-family: verdana,arial,sans-serif; font-size: 10px;  }
span { font-family: verdana,arial,sans-serif;  }
input { font-family: verdana,arial,sans-serif; font-size: 10px; }
div { font-size: 9px; }
</style>
<TITLE>Exonerate - Login</TITLE>
</HEAD>
<BODY BGCOLOR="ADBDC6" leftmargin="0" topmargin="0" marginHeight="0" marginwidth="0">
<table cellpadding="0" cellspacing="0" border="0">
<tr><td><img src="images/login_bg.gif" height="100" width="100" border="0"></td></tr>
<tr><td><img src="images/login_bg.gif" height="100" width="100" border="0"></td><td width="201"><img src="images/login/logo.gif" border="0" width="201"></td>
<td width="217" valign="top" align="left"><img src="images/login/feilmeldinger.gif" border="0" width="217"></td></tr>
<tr><td></td><td></td><td>
        <table cellpadding="0" border="0">
        <form method="post" action="/index.html">
        <tr><td><p><b>Brukernavn:&nbsp;</td><td><INPUT type="text" name="alfa" size="20"></td></tr>
        <tr><td><p><b>Passord: &nbsp;</td><td><INPUT type="password" name="beta" size="20"></td></tr>
        <tr><td colspan="2" align="right"><INPUT type="image" src="images/login/logginn.gif" border="0" name="logon" value="Logg p&aring;"></td></tr>
        </FORM>
        </table>
</td></tr>
<tr><td></td><td COLSPAN="2"><img src="images/login/driftsmeldinger.gif" border="0"></td></tr>
</table>


<div id="errormessage">
<table width="200">
<tr><td><p>Her kommer feilmeldingene.....</td></tr></table>
</div>
<div id="message">
        <table width="400" border="0">
        <tr><td>
        <P>Her kommer det driftsmeldinger etter hvert.. Her kommer det driftsmeldinger etter hvert..  </td></tr></table>
</div>
</BODY>
</HTML>

The problem is that the content of the layers won't be placed where it should be. The first layer("errormessage") is OK, but the second one is placed in the  bottom right corner. It seems to me that the first layer makes this problem because if I Cut & Paste so that layer errormessage comes first it's showing on the right place. But then, the other layer is placed far low to the right.

In IE, the page shows exactly as it should.

Any obvious reason to my problem?

Thanks in advance!

Batalf

0
Comment
Question by:Batalf
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
james_beilby earned 50 total points
ID: 6417001
Simple problem... the Paragraph tag is not closed...

Try replacing the line:
     <tr><td><p>Her kommer feilmeldingene.....</td></tr></table>
with:
     <tr><td><p>Her kommer feilmeldingene.....</p></td></tr></table>

Hope this helps,
-james
0
 
LVL 32

Author Comment

by:Batalf
ID: 6417041
Simple as that!???!??!??!??

I use to avoid </p> because of the extra line-space it creates.

Thanks !!!
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question