Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    May 2004
    Thanked 0 Times in 0 Posts

    Override print style?

    Hi there. I have a print style that won't display images when printing..

    img {display: none;}

    I have a certain page where I need the print style sheet but will like the images to print. How can I override the print style for the images?
    Last edited by nikko50; 08-11-2005 at 03:27 PM.

  • #2
    Senior Coder
    Join Date
    Jul 2004
    New Zealand
    Thanked 2 Times in 2 Posts
    If it's only specific images, apply the display property through their ID, or class. If you just want all images to show, apply the display:auto after that display:none, or make it display:auto !important.
    Forget style. Code to semantics. Seperate style from structure, and structure from behaviour.
    I code to specs, and test only in Firefox (unless stated otherwise).


    Posting Permissions

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