SitePoint Sponsor

User Tag List

Results 1 to 9 of 9
  1. #1
    SitePoint Member
    Join Date
    Jan 2002
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    css and print help

    Hi all.

    Now I have this page which I use css to determine the style of text etc and hopefully the positioning of the layers although this doesnt seem to work very well.

    http://www.brainworks.co.nz/zerowaste/index1a.htm

    The page has two style sheets-
    one for screen viewing and one for printing. These do apply when they are ment to.

    The problem is I want the postion of the main content layer to change depending on what syle sheet is active. so for print the z-index will change so the content layer can cover (postion changes as well) the menu on the side.

    can someone help?

  2. #2
    SitePoint Wizard Ian Glass's Avatar
    Join Date
    Oct 2001
    Location
    Beyond yonder
    Posts
    2,384
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    First of all, I can't find the style sheets listed in the source!

    Next, if you're serious about this, then you're going to have to scrap the <TABLE> based layout. CSS usually doesn't like to mix old methods and new, from my experience.

    Good Luck! :-)

    ~~Hope This Helps

  3. #3
    Posts rarely lloydi's Avatar
    Join Date
    Jan 2002
    Location
    Swindon UK
    Posts
    620
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Goat

    I recently had to put together a guide covering printing using CSS, and I could zip the relevant pages up for you and mail them if you are interested. If so, drop me a line.
    Build Your Own Web Site the Right Way!
    A beginners' HTML/CSS book with web standards at its heart
    The Ultimate HTML Reference
    A complete reference, in glorious hardback

  4. #4
    SitePoint Wizard Ian Glass's Avatar
    Join Date
    Oct 2001
    Location
    Beyond yonder
    Posts
    2,384
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ian, I'd like to see that, myself (I'm sure others would, too). What if you were to upload it to a server you have access to and link to it? :-)

    ~~Ian

  5. #5
    SitePoint Wizard Bill Posters's Avatar
    Join Date
    Dec 2001
    Location
    UK
    Posts
    1,523
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I would
    New Plastic Arts: Visual Communication | DesignateOnline

    Mate went to NY and all he got me was this lousy signature

  6. #6
    Posts rarely lloydi's Avatar
    Join Date
    Jan 2002
    Location
    Swindon UK
    Posts
    620
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I can't easily upload things from work (ftp is blocked)

    Also, as it is intended as an internal guideline, so I'm a bit wary about making it public.

    The guidelines are all based on existing stuff out there on the web though ...

    I'll contact people who specifically request it though.
    Build Your Own Web Site the Right Way!
    A beginners' HTML/CSS book with web standards at its heart
    The Ultimate HTML Reference
    A complete reference, in glorious hardback

  7. #7
    SitePoint Wizard Ian Glass's Avatar
    Join Date
    Oct 2001
    Location
    Beyond yonder
    Posts
    2,384
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Understandable. Thanks! :-)

  8. #8
    .net install meltdown
    Join Date
    May 2001
    Location
    View Ridge
    Posts
    692
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    A few ideas:

    Put all the CSS for #menu & #content in the external stylesheets. In the print stylesheet set the visibility of the #menu to none, in #content take out the abs positioning & set the body margin props to your taste.

    HTH

  9. #9
    SitePoint Wizard Bill Posters's Avatar
    Join Date
    Dec 2001
    Location
    UK
    Posts
    1,523
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    YOu may find the Codestyle.org 'Media Monitor' section helpful:

    http://www.codestyle.org/css/media/index.shtml

    Just found it via the W3C CSS site.

    Gonna read it myself now, too
    New Plastic Arts: Visual Communication | DesignateOnline

    Mate went to NY and all he got me was this lousy signature


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
  •