SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    High fives all round! bradley317's Avatar
    Join Date
    Jan 2004
    Location
    Chester, UK
    Posts
    214
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    IE 5 print stylesheet problem

    I'm working on the inclusion of a print stylesheet that removes navigation and formats content in a more easily readable serif font.

    Trouble is, IE 5 renders the stylesheet on the screen, which is no good because all of the nav gets binned.

    Here's the code...

    <style type="text/css" media="screen">
    <!--
    @import url("../style_layout.css");
    @import url("../style_design.css");
    -->
    </style>
    <style type="text/css" media="print">
    <!--
    @import url("../style_print.css");
    -->
    </style>

    I'm using this method to hide the styles from version 4 browsers and below, but this clearly isn't the way forward. Does anyone know how I might resolve this?
    Hello, hello, what's all this shouting?
    We'll have no trouble here

    (Helping a pal... http://www.funkdub.info)

  2. #2
    High fives all round! bradley317's Avatar
    Join Date
    Jan 2004
    Location
    Chester, UK
    Posts
    214
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think I fixed it with this code instead...

    <style type="text/css" media="screen">
    <!--
    @import url("../style_layout.css");
    @import url("../style_design.css");
    -->
    </style>
    <link rel="stylesheet" type="text/css" media="print" href="../style_print.css" />

    I thought that would mess things up for version 4 browsers, but apparently not.
    Hello, hello, what's all this shouting?
    We'll have no trouble here

    (Helping a pal... http://www.funkdub.info)


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •