Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

styling #21

Open
ranamateenft opened this issue Aug 15, 2017 · 3 comments
Open

styling #21

ranamateenft opened this issue Aug 15, 2017 · 3 comments

Comments

@ranamateenft
Copy link

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

@xzessmedia
Copy link

xzessmedia commented Aug 15, 2017

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

@raszkiewicz
Copy link

Same issue + table tags are not recognized

@ranamateenft
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants