ngPrint icon indicating copy to clipboard operation
ngPrint copied to clipboard

styling

Open ranamateenft opened this issue 7 years ago • 3 comments

Hi. My page is displaying as like this please help me untitled

ranamateenft avatar Aug 15 '17 11:08 ranamateenft

same here, i correctly wrapped up the element like this

`< div id="printpage" > < h1 >Test< /h1 > < /div >

< button class="md-icon-button md-primary md-raised" ng-print print-element-id="printpage" md-button>< i class="fa fa-print">< /i >`

Looking the same, defining other element ids does not fix it

xzessmedia avatar Aug 15 '17 12:08 xzessmedia

Same issue + table tags are not recognized

raszkiewicz avatar Sep 14 '17 18:09 raszkiewicz

Hi Everyone. I am posting the css files here. just replace your css file with my file and all be work fine. I have done with this issue. thanx

@media screen { #printSection { display: none; } }

@media print { body * { display:none; }

#printSection, #printSection * {
    display: inline-block;
    
}

table {
    table-layout: auto;
}
td {
    border: 1px solid #ccc;
    width: 160px;
    height: auto;
}
th {
    border: 1px solid #ccc;
    width: 160px;
    height: auto;
}
th:nth-child(2) {
    border: 1px solid #ccc;
    width: 210px;
    height: auto;
}
td:nth-child(2) {
    border: 1px solid #ccc;
    width: 210px;
    height: auto;
}

#printSection {
    position:absolute;
    left:0;
    top:0;
}

}

github is not allowing me to attach a .css file and me too lazy to change extension. I have pasted the css file contents here. replace your css file contents with my css contents. if some issue persists then play with css little bit and it will fix. thnx.

ranamateenft avatar Sep 15 '17 06:09 ranamateenft