Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

FP2000: Relative Font Size Not Retained After Changing Font


View products that this article applies to.

This article was previously published under Q219549

↑ Back to the top


Symptoms

When you change the font properties of text that has a relative font size applied to it, the relative font size property is removed. For example, if you have the following HTML source code in your file
<p align=center><font size="+2" face="Arial">test</font>
				
switch to normal view, select the text "test", click Font on the Format menu and change the font to Times New Roman, the code changes to the following:
<p align=center><font face="Times New Roman" size="2">test</font>
				

↑ Back to the top


Cause

The Size box in the Font dialog box does not support relative font size values. Valid values range from 1 to 7 and Normal. FrontPage uses Normal by default.

↑ Back to the top


Resolution

To change the font without affecting the font size value, click the HTML tab and change the HTML source code to reflect the font you want to use.

If you changed the font by using the Font dialog box, you may need to correct the font size. To do this, click the HTML tab and change the SIZE value to the number you want.

↑ Back to the top


More information

The default value for font and basefont sizes in HTML is 3. If you want to have your text displayed in a larger or smaller font relative to the basefont, you can prefix the value with a plus (+) or minus (-) character. Thus, to specify a font size that is two times larger than the basefont, use the following syntax:
<FONT size="+2">Your text here.</FONT>
				
To specify a font size that is two times smaller than the basefont, use the following syntax:
<FONT size="-2">Your text here.</FONT>
				
NOTE: The basefont is essentially the default font size that a browser uses to render the text when your site is visited. Therefore if a site visitor sets the default font size to a value larger or smaller than the default basefont of 3, the text may appear much larger or smaller than intended. This option may not be available in all web browsers.

↑ Back to the top


Keywords: KB219549, kbprb

↑ Back to the top

Article Info
Article ID : 219549
Revision : 1
Created on : 12/2/2000
Published on : 12/2/2000
Exists online : False
Views : 266