Re: different style sheets for screen/printing?
On Thu, 16 Oct 2003 19:36:37 GMT, Brian
<usenet1@mangym utt.com.invalid-remove-this-part> wrote:
[color=blue]
>Geoff Cox wrote:[color=green]
>>
>> If I wish to allow the user to select which font size to print in, I
>> will need to provide a duplicate html page in the different font size?[/color]
>
>Heavens no!
>[color=green]
>> css cannot cover this?[/color]
>
>It can. In fact, done properly, it is the best way to handle font-size.
>
>body {font-size: 100%}
>/* sets the font size for the body element to 100% */
>/* of the size the user has set in her or his browser */
>
>h1 {font-size: 200%}
>/* sets h1 element to twice the size of body text */
>
>h2 {font-size: 150%}
>/* sets h2 element to be 50% larger than body text */
>
>h3 {font-size: 120%}
>/* sets h3 element to be 20% larger than body text */
>
>
>As others have said before, users are likely to be in one of two
>groups: (1) those who have set their font size in their browser to
>something that they like, and won't appreciate you changing it; and
>(2) those who use the font-size set by the browser when it was
>installed, and don't want to change it. For both groups, the only
>sensible option is to always set the font-size of the body element to
>100%. Set other elements to whatever size works given your size, but
>always as a percent of the body element, that is, a percent of the
>default size selected in the users' browsers.
>
>hth[/color]
Brain
Food for thought ! I appreciate what you are saying, will have to go
back to the web site owner and see if I can persuade him to this point
of view....
Thanks
Geoff
On Thu, 16 Oct 2003 19:36:37 GMT, Brian
<usenet1@mangym utt.com.invalid-remove-this-part> wrote:
[color=blue]
>Geoff Cox wrote:[color=green]
>>
>> If I wish to allow the user to select which font size to print in, I
>> will need to provide a duplicate html page in the different font size?[/color]
>
>Heavens no!
>[color=green]
>> css cannot cover this?[/color]
>
>It can. In fact, done properly, it is the best way to handle font-size.
>
>body {font-size: 100%}
>/* sets the font size for the body element to 100% */
>/* of the size the user has set in her or his browser */
>
>h1 {font-size: 200%}
>/* sets h1 element to twice the size of body text */
>
>h2 {font-size: 150%}
>/* sets h2 element to be 50% larger than body text */
>
>h3 {font-size: 120%}
>/* sets h3 element to be 20% larger than body text */
>
>
>As others have said before, users are likely to be in one of two
>groups: (1) those who have set their font size in their browser to
>something that they like, and won't appreciate you changing it; and
>(2) those who use the font-size set by the browser when it was
>installed, and don't want to change it. For both groups, the only
>sensible option is to always set the font-size of the body element to
>100%. Set other elements to whatever size works given your size, but
>always as a percent of the body element, that is, a percent of the
>default size selected in the users' browsers.
>
>hth[/color]
Brain
Food for thought ! I appreciate what you are saying, will have to go
back to the web site owner and see if I can persuade him to this point
of view....
Thanks
Geoff
Comment