8000 styling · Issue #21 · gilf/ngPrint · GitHub
[go: up one dir, main page]

Skip to content

styling #21

Open
Open

Description

@ranamateenft

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

Activity

  1. xzessmedia commented on Aug 15, 2017

    @xzessmedia

    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

  2. raszkiewicz commented on Sep 14, 2017

    @raszkiewicz

    Same issue + table tags are not recognized

  3. ranamateenft commented on Sep 15, 2017

    @ranamateenft
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0