Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Chat Applet Padding

Posted on 2004-03-30
7
Medium Priority
?
332 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 800 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 17

Accepted Solution

by:
dorward earned 1200 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
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…
Suggested Courses

927 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