I have 2 div(div1,div2) and 2 button(full, half) in a HTML file.
when I click button full then It displays both div's contents and print 2 page including div1 and div2 contents.
when I click button half then it dispalys only div2 contents and hide div1. whenever I print the displayed div2, it works on chrome,ff.
display is perfect in all web browser.
my problem is that It prints both page in IE8/9/10 instead of single page. I used below code in css file but @media print does not work.
.div1{
display: none;
padding-top: 10px;
}
@media print {.div1{ display: none; } }
I need to print only displayed page(div2) . please help.