*
*
*
*
ForumsRegister | Login 
Subject: PrintVersion CSS in dotnetnuke
Prev Next
You are not authorized to post a reply.

AuthorMessages
rhuberUser is Offline

Posts:0

04/01/2005 9:23 AM Alert 

Is there any way that I can swap to a print version css file for printing in DNN?

Traditionally, I would just whip up a second css file and call it print.css or whatever, then add something to the actual page like: 
<link href="print.css" rel="stylesheet" type="text/css" media="print">  Then if I print the page, it would swap right over every time.  I can't figure out how to get this to work with DNN for the life of me.  I read in your info about CSS Include that DNN will want to stick with the default css files at all times unless some kind of tricky intervention is applied... I could sure use a trick about now if anyone has one.

I've searched high & low, but I can't even find a mention of it.  I figure you guys know a thing or two about DNN and CSS... is there some kind of method out there that would enable this simple little swap? 

dnnstuffadminUser is Offline
DNNStuff Founder
Site Member
Site Member
Posts:1180


04/01/2005 10:06 AM Alert 
I think you could probably alter the default.css and add the media tags directly into it. Take a look here (http://www.w3.org/TR/REC-CSS2/media.html).

You should be able to add some @media print rules into the css file that override the 'screen' rules. Something like the following should override the body tag.

  @media print {
BODY { font-size: 10pt }
}

Richard

Richard Edwards
DNNStuff Founder
rhuberUser is Offline

Posts:0

04/01/2005 11:56 AM Alert 

Thank You!!

I have had absolutely zero luck finding anything on this subject, and never managed to even get a response in the DNN forum on this one.  I tried your suggestion and it worked perfectly.  It may seem trivial to some... but I've really been pulling my hair out over this one.

Thanks again.

dnnstuffadminUser is Offline
DNNStuff Founder
Site Member
Site Member
Posts:1180


04/01/2005 1:23 PM Alert 
You're very welcome. I'm glad it worked out for you :D

Richard Edwards
DNNStuff Founder
You are not authorized to post a reply.
Forums > General > DotNetNuke > PrintVersion CSS in dotnetnuke



ActiveForums 3.6

DotNetNuke Powered!

Copyright (c) 2005-2008 DNNStuff
*
Terms Of Use   Privacy Statement