home / experts / javascript / column66 |
|
Changing the FontThe color change we have dealt with previously is a relatively simple task for the browser, as the size of the element does not change and there is no need to reflow the document. This is not the case when you change other style properties, such as Here is the HTML code that implements the above paragraph:
Similarly, reflowing of the page is also needed when the font family changes. Mouse over and out of the following page to see this effect. Transition is smoother when you mouse out of the side lines: Mouse over this paragraph and see how the font family changes to Courier. Mouse out and see it changing to Arial. This is a good way to emphasize the paragraph currently being read. See how the browser reflows the page as if this paragraph was originally written with the current font family.Here is the HTML code that implements the above paragraph:
How to remove an element via a link |
Produced by Yehuda Shiran and Tomer Shiran
Created: August 14, 2000
Revised: August 20, 2000
URL: http://www.webreference.com/js/column66/***PASTE FILENAME HERE***