Removing frames for Printing
Archived from the Xataface Users forum.
wisni1rr — Tue Mar 13, 2012 10:03 am
I was wondering of a good way to approach printing the “view” tab of a record? I would like to eliminate the frames so the the Current Record: label is in the top-left corner.
shannah — Tue Mar 13, 2012 11:52 am
You can either create a custom print stylesheet, or you can create a special print template. The print stylesheet is probably the easier approach. You can specify that a style rule is only active for printing by placing a
- Code: Select all
@media print { … }
in a stylesheet to override the default styles. You could e.g. hide certain sections of the page using the display: none rule.
Here is an example from the g2 module stylesheet that is set up to remove most of the frame when printing:
- Code: Select all
@media print { #left_column, #top-section, .fineprint, .search_form, .xf-button-bar { display:none; } }