Solved

Chat Applet Padding

Posted on 2004-03-30
7
317 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

This article shows how to create and access 2-dimensional arrays in JavaScript.  It includes a tutorial in case you are just trying to "get your head wrapped around" the concept and we'll also look at some useful tips for more advanced programmers. …
Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
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…

752 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