Solved

Chat Applet Padding

Posted on 2004-03-30
7
306 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
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

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…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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…

785 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