Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: print a section or area  (Read 102 times)

Edgardo

  • Newbie
  • *
  • Karma: 1
  • Posts: 22
print a section or area
« on: February 19, 2013, 04:29:09 AM »

Hi everyone dont know how to do some trick and fore shore you have a better answer than my ideas, so I need to make some printable area kind of a discount tiket on a page, just a little scuare, and may do on outside page or inside snews, any ideas how to do it? thenks..
Logged

sibas

  • Sr. Member
  • ****
  • Karma: 23
  • Posts: 451
    • www.simply4all.net
Re: print a section or area
« Reply #1 on: February 19, 2013, 09:03:59 AM »

Edgardo you can print any content using css media print
here is one idea of how you can manage to print any section

add this at the end of you css
Code: [Select]
@media print {

body * {
visibility: hidden;
}

.printclass * {
visibility: visible;
}

.printclass {
/* you can play with many styles */
position: absolute;
top: 40px;
left: 30px;
}
}

or make new stylesheet and put in
Quote
<link rel="stylesheet" type="text/css" href="print.css" media="print" />
Logged

Edgardo

  • Newbie
  • *
  • Karma: 1
  • Posts: 22
Re: print a section or area
« Reply #2 on: February 19, 2013, 07:56:02 PM »

thenks for the answer it looks easy  the only thing that Im thinking is the position since I was thinking on put this at the end of the page so I dont know where its going to be, so i have to try thenks..
Logged