Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...questions on adding Print CSS in skin.cssquestions on adding Print CSS in skin.css
Previous
 
Next
New Post
3/20/2008 4:25 PM
 

Hi, I am trying to add some "Print" css in my skin.css file. I am wondering how to exclude the menu (I am using SEO Menu from snowcovered) and also our logo and flash banner on the top of all pages. Is there a way to also add a different logo / image or text on top in place of the one I want to remove? Can someone please point me in the right direction? Thanks!

 
New Post
3/22/2008 6:59 PM
 

Steph,

The browser need to know when you want to view the document on screen and when you want to print it. To spcefiically tell the browser to load the print.css or print css selectors, you can follow the below example:

  1. To embed the media type in an HTML document, we need to tell which file should be loaded in conjunction with the media type, for example:

    <link rel="stylesheet" href="skin.css" media="screen" />
    <link rel="stylesheet" href="print.css" media="print" />

    However, by default the document will load with skin.css, media declaration like media="screen" can be omitted. 
  2. To embed the media type in a CSS selector (in the same CSS document, skin.css for example), you can do this:

    .my_styles {background: gray;}

    @media print {

        .my_style {background: white;}

      }

You can take the same approach to hide the menu in your print document.

 

Hope this helps!


Cuong Dang
Co-founder: Enliven, dnnGallery
LinkedIn | Twitter
I'm the author of DNN and Web Standards Wrox Blox

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...questions on adding Print CSS in skin.cssquestions on adding Print CSS in skin.css


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out