I wanted to be able to print a nice profile from the front end without all of the rest of the site elements showing up. I took the advice from above and made another style sheet that is used for printing only. Here's my code in case it helps anyone!
Reference your style sheet like this:
[code:1]
<link rel="stylesheet" type="text/css" media="print" href="http://<your_site_here>.com/templates/<your_template_here>/css/template_for_print_css.css" />
[/code:1]
And put this in your style sheet. Topbar, footer, and sidebar are all divs in my page layout.
[code:1]
body {
background: white;
font-size:12pt;
color:#000000;
}
#topbar, .footer, .sidebar, #cbtab11, #cbtab11 h2.tab, h2.tab{
display: none !important;
}
.contentheading, #cbProfileTitle {
text-align:center;
font-size:16pt;
margin-top:0px;
padding-top:0px;
}
.cbPosMiddle td {
text-align:center;
}
.titleCell, .fieldCell, td.titleCell, td.fieldCell{
border-bottom-style:none;
vertical-align:top;
}
[/code:1]
Post edited by: jfox77, at: 2008/04/03 00:17