Solved

Chat Applet Padding

Posted on 2004-03-30
7
311 Views
Last Modified: 2012-06-21
Hello,  

We have a chat applet that we use.  I am sure you are all familiar with the HTML element called padding.  Puts a little space between the edge of a table and the text.  is there any similar thing we could include with our chat applet.  A padding effect for the cells that make up the chat applet?

Kindest thanks,

Yunkaa
0
Comment
Question by:yunkaa
  • 4
  • 3
7 Comments
 
LVL 63

Expert Comment

by:Zvonko
ID: 10712660
So you want to shift your applet some space to right, right?

You do not want to center the applet and you have already tried to put it in a table cell or a div with a fixed width and aligned to right side?

0
 
LVL 17

Expert Comment

by:dorward
ID: 10712683
Cells that make up an applet?

Can you provide a URI? I think it would make things clearer.
0
 
LVL 63

Assisted Solution

by:Zvonko
Zvonko earned 200 total points
ID: 10712726
Like this:

<html>
<body>
<table><tr>
<td width="300px" align="right">
<applet code=AnalogClock2ech.class width=200 height=200 codebase=http://www.ericharshbarger.org/java/analogclock/ archive=AnalogClock2.jar>
<param name=COPYRIGHT value="AnalogClock applet, Copyright 1998, Eric Harshbarger">
<param name=AUTHOR value="Eric Harshbarger, http://www.ericharshbarger.org">
<param name=FACECOLOR value="192,192,192">
<param name=FGCOLOR value="0,0,0">
<param name=BGCOLOR value="255,255,255">
<param name=FONTSIZE value="16">
<param name=HANDS.DISPLAY value="0-3">
<param name=NUMBERS.DISPLAY value="0-5">
</applet>
</td>
<tr></table>
</body>
</html>

0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

 
LVL 17

Accepted Solution

by:
dorward earned 300 total points
ID: 10712746
And you want to put space between the applet and the cell?

Change:
<td width="300px" align="right">

To:
<td width="300" align="right" style="padding: 5px">

(Note that I removed the 'px' from the width attribute - its CSS that requires units - HTML forbids them except for percentages)

Also note that Java and JavaScript are two very different animals and have virtually nothing in common except for the first 4 letters of their names
0
 
LVL 63

Expert Comment

by:Zvonko
ID: 10712760
Are you talking to me?
0
 
LVL 17

Expert Comment

by:dorward
ID: 10712766
Oh - I made the mistake of assuming that was the code example I requested from yunkaa
0
 
LVL 63

Expert Comment

by:Zvonko
ID: 10712782
:-)
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

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…
This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
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…

830 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