Solved

Layer problem(HTML or Javascript)

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Placeholder text not disappearing in Contact Form 7 2 23
Underline in nav for the page that you are currently on. 1 22
Alert after MVC form submitted 1 22
Json Schema 8 32
The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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…

829 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