471,092 Members | 1,390 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,092 software developers and data experts.

Question Regarding Text Sizing

I've been trying to use HTML text that will scale up or down using the
Internet Explorer 6.0 menu View\Text Size. I'm using CSS to set the sizes
and weight.

When I use View\Text Size Medium and CSS the results are

Product line - font-size: medium - result bolded
Pricing line - font-size: small - normal

When I use View\Text Size with any size not medium and CSS the results are

Product line - font-size: medium - normal
Pricing line - font-size: small - normal

If I use font-weight bold for the Product Line I end up with double bolding
when View\Text is set to Medium.

This inconsistant behavior of bolding makes it hard to have consistant
looking fonts where the Product Line should be bolded.

If I use a set point size the text will not scale.

Is there a way of setting up fonts so that the results across the View\Text
Size options is consistant?
Thanks in advance
Doug

Jul 23 '05 #1
1 1389
Douglas Pollock wrote:
I've been trying to use HTML text that will scale up or down using the
Internet Explorer 6.0 menu View\Text Size. I'm using CSS to set the sizes
and weight.

When I use View\Text Size Medium and CSS the results are

Product line - font-size: medium - result bolded
Pricing line - font-size: small - normal

When I use View\Text Size with any size not medium and CSS the results are

Product line - font-size: medium - normal
Pricing line - font-size: small - normal

If I use font-weight bold for the Product Line I end up with double bolding
when View\Text is set to Medium.

This inconsistant behavior of bolding makes it hard to have consistant
looking fonts where the Product Line should be bolded.

If I use a set point size the text will not scale.

Is there a way of setting up fonts so that the results across the View\Text
Size options is consistant?

Thanks in advance
Doug


<style type="text/css">
span.product {
font-size: medium;
font-weight: bold;
}
span.pricing {
font-size: small;
}
</style>
<span class="product">Product</span>
<span class="pricing">Pricing</span>

Results in "Product" being "bold" from View -> Text Size -> Largest to View ->
Text Size -> Smallest in IE6SP1 here. Maybe your font-family doesn't make that
obvious when fonts get below a specific size (such as Verdana).

Anyway, what does this have to do with Javascript?

--
| Grant Wagner <gw*****@agricoreunited.com>

* Client-side Javascript and Netscape 4 DOM Reference available at:
*
http://devedge.netscape.com/library/...ce/frames.html

* Internet Explorer DOM Reference available at:
*
http://msdn.microsoft.com/workshop/a...ence_entry.asp

* Netscape 6/7 DOM Reference available at:
* http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 7 / Mozilla
* http://www.mozilla.org/docs/web-deve...upgrade_2.html
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

38 posts views Thread by Shaun McKinnon | last post: by
2 posts views Thread by Dennis | last post: by
2 posts views Thread by bugbear | last post: by
18 posts views Thread by fleemo17 | last post: by
7 posts views Thread by Yeah | last post: by
26 posts views Thread by Mike Barnard | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.