different style sheets for screen/printing?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Geoff Cox

    #16
    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

    Comment

    • Tim

      #17
      Re: different style sheets for screen/printing?

      On Thu, 16 Oct 2003 15:56:54 GMT,
      Geoff Cox <geoff.cox@blue yonder.co.uk> wrote:
      [color=blue]
      > 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]

      No. (A nice simple answer.)

      As you'll have read, there's plenty of good reasons not to mess with
      font sizes (which I've always agreed with). If you were to provide
      users with *some* way to use your site at different sizes, then users
      will have to fiddle with their browsers. They might just as well
      properly configure their browsers so that all pages work fine for them;
      rather than providing strange mechanisms, and having to explain it. You
      may be better to find a reference to some good "how to use your browser"
      sites, and link to them in a "help" section on your site.

      Having said that, if you are determined to let users use your site in
      different styles, browser support for that is limited (the most
      prevalent browser, MSIE, doesn't support it), but you'd do it by using
      more than one link to different stylesheets in the document head; that's
      one HTML document, with one default stylesheet, and various
      alternatives, either as a personal choice, or automatic alternatives
      depending on the media that they're designed for (screen, print, etc.).

      | <html>
      |
      | <head>
      | <title>A test page</title>
      | <link rel="stylesheet " type="text/css" href="usual.css " title="Site's usual look">
      | <link rel="alternate stylesheet" type="text/css" href="different .css" title="A different look">
      | <link rel="stylesheet " type="text/css" media="print" href="for_paper .css" title="For printing">
      | </head>
      |
      | <body>
      | <h1>A test page</h1>
      | <p>This page can be viewed in different styles, if your browser gives you some way to choose between them.</p>
      | </body>
      | </html>

      If you read the CSS and HTML specifications (the introductions, at the
      very least; and I suggest that you read the "style" page in the HTML
      specifications) , you'd save us all a lot of explaining.

      Producing large font sites for people with eyesight problems is just
      further isolating them from the rest of the web. If they don't learn
      how to configure their system for most sites, or get help to do so, then
      they're only going to be able to use specially prepared sites.

      If you're going to go out of your way to support users, it's better to
      just produce well authored sites, using HTML properly, and not doing
      anything proprietary; this produces sites that work well for everyone.

      --
      My "from" address is totally fake. (Hint: If I wanted e-mails from
      complete strangers, I'd have put a real one, there.) Reply to usenet
      postings in the same place as you read the message you're replying to.

      Comment

      Working...