Solved

Layer problem(HTML or Javascript)

Posted on 2001-08-23
2
173 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
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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-…
In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
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…

707 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now