View Full Version : Applet Tag in HTML
javaspace
09-13-2002, 06:01 PM
Hello: I have used this forum before and you have been very helpfull. I need some help. I have a web page with applets. When I bring the page on the browser I see lot of space in the top. The applets and other stuff shows O.K but the space on the top of the browser about 15 lines is causing a problem. I have the html as an attachment.
On another note, How can I a make the applet clickable. When the user click on the applet I want to link to another address?
Can any one see what the problem is and help me. Thanks for your help in advance.
Nightfire
09-13-2002, 07:09 PM
Try deleting the first
<table border="15" cellpadding="0" cellspacing="0" align="center">
<tr>
javaspace
09-13-2002, 07:38 PM
NO it did not help. I still have 15 lines of blank and then the applets starts.
adios
09-14-2002, 02:00 AM
You can't nest a table in a <tr>; rows are designed to hold <td>s, which hold the content - including any nested tables:
<body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0">
<table border="15" cellpadding="0" cellspacing="0" align="center">
<tr><td>
<table border="15" cellpadding="0" cellspacing="0" align="center">
javaspace
09-14-2002, 09:32 PM
I tried that, I still have 10 to 15 lines blank on the top. I don't understand why this is happening. I have no BR tags or anything. I don't get it?.
Roy Sinclair
09-16-2002, 07:23 PM
So what does your page look like now? We can't do much by just guessing.
javaspace
09-16-2002, 07:39 PM
I found the problem. The applet was generated by an ASP page. I had a comment line with < BR > tag. The < BR > was outside the comment causing the blank lines.
Thanks for your help:thumbsup:
Roy Sinclair
09-16-2002, 08:13 PM
A good trick to use when hunting down problems in pages using server side code (ASP, PHP, PERL ...) is to use the view source function in the browser and then select the whole the code and copy and paste it into a text editor (or just use notepad if you did this from IE).
That way you can examine the actual output page and see if it's exactly what you want. You can also pass it to an html validator and verify that you generated proper html.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.