Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Inside DIV tag, text box doesn't appear on NS.

Status
Not open for further replies.

martindavey

Programmer
Jan 2, 2000
122
GB
The following short example works on IE, but on NS the input text field doesn't appear??????

<html>

<head>
<style type=&quot;text/css&quot;>
</style>
</head>

<body>

<form>
<div id=&quot;firstname&quot; style=&quot;position:absolute; top:180px; left:25px; z-index:0;&quot;>
<table border=&quot;1&quot;>
<tr>
<td>
First Name<input type=&quot;text&quot;>
</td>
</tr>
</table>
</div>
</form>

</body>
</html>
 
It has no size given, maybe that's why? BB &quot;Alright whatever man, I'll hook up the hair, but I aint touchin the ring...Cause I'm still a pla--yer&quot;
 
Thanksm, I tried that as follows:-

First Name<input type=&quot;text&quot; size=&quot;20&quot;>

But no difference.
 
try just putting the <form> inside the div.

<div id=&quot;firstname&quot; style=&quot;position:absolute; top:180px; left:25px; z-index:0;&quot;>
<form>
<table border=&quot;0&quot;>
<tr>
<td>
First Name<input type=&quot;text&quot; size=20>
</td>
</tr>
</table>
</form>

Be prepared for weird results when working with Netscape - it is very particular about syntax, and sometimes things just don't seem to make sense. IE is very forgiving, so my suggestion is to work with NN first, and debug often.

-BB

</div>

&quot;Alright whatever man, I'll hook up the hair, but I aint touchin the ring...Cause I'm still a pla--yer&quot;
 
yeah,,, for some reason NS thinks divs are separate documents... so it might not like inputs inside divs inside forms.... adam@aauser.com
 
NS doesn't like DIVs, they don't behave the way they're supposed to. Try this:

<layer>
<nolayer>
<div>
</nolayer>

put the div content here

<nolayer>
<div>
</nolayer>
</layer>

The <layer> tag is the NS version of <div> so if the page is run on NS the <div> tags are ignored (unless you're running an old version, in which case the <nolayer> tags are opened) and the layer is implemented instead. IE on the other hand will ignore the <layer> tag as it doesn't recognise it, hence it will implement the <div> tag instead.
 
That is unnecessary. I have tested the div, it works perfectly - try not to mislead people ;) &quot;Alright whatever man, I'll hook up the hair, but I aint touchin the ring...Cause I'm still a pla--yer&quot;
 
What do you mean you've tested it?
Have you tried my code at the top - it doesn't work.

If you think you can get the input to work in a div on NS then show me some code to prove it please.
 
no... he's saying that div's work fine in NS... its unnecessary to use layer tags. adam@aauser.com
 
sorry if my info is wrong...just telling you what i read in a book...
 
I said just put the whole form inside the div and it works, like: Hey wait a minute (Calgon?) I did post the code - does it not work? Should do...bb &quot;Alright whatever man, I'll hook up the hair, but I aint touchin the ring...Cause I'm still a pla--yer&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top