You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.



You are here: Test Case Description for applets within <applet> tag > Test Case #10 for applets within <applet>: relative width

Applets: APPLET (relative width)

This test case tests the <applet> tag with its mandatory width attribute which, similar to the <img> tag, explicitly specifies the width of the java applet. The width attribute can either be an absolute width using an integer value of pixels or a relative width using a relative percentage value.

Test Case: sample java applet dimension scaling using relative widths
(using <applet codebase=class pathname code="class name" width=percent value> </applet>)

Java Applet Dimensions Scaled Down (Reverse Scaling)

Original applet

Applet width="25%"

Applet width="15%"

Applet width="10%"