Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Height and Width In percentage

 
Fardeen Siddiqui
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
how can we specify the width and height of an applet in an applet tag of html in percentage
is it possible?
thanx
 
kanamala
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes it is possible.
add this in HTML page..
<applet code=ss.class height=100% width=100%></applet>
the height and width are adjusted according to the size of the browser. Here 100% means Applet occupies the full window..
you can try it out..
bye
Kanamala

Originally posted by Fardeen Siddiqui:
Hi all,
how can we specify the width and height of an applet in an applet tag of html in percentage
is it possible?
thanx

 
Fardeen Siddiqui
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
i am using a html <td> in which the applet is placed..now this <td> is in percentage..but the applet width doesn't take percentage so there is blank spaces left at higher resolutions..
can u suggest me a way
Thanx
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic