Git Product home page Git Product logo

Comments (3)

marcbachmann avatar marcbachmann commented on July 18, 2024

Here's maybe a solution: http://stackoverflow.com/questions/16427903/remove-all-padding-and-margin-table-html-css

Please ask such questions on stackoverflow.
There's a large community that can answer html- & css- specific questions.

from node-html-pdf.

marcbachmann avatar marcbachmann commented on July 18, 2024

Here's a css I've used.

        table {
          border-collapse: collapse;
          border-spacing: 0;
          background: rgb(255, 255, 255);
          margin-bottom: 0.25em;
        }

        thead, tfoot {
          background: rgb(230, 230, 230);
          font-weight: 700;
        }

        thead td, tfoot td {
          padding: .4em .625em .4em;
          font-size: .875em;
          color: rgb(20, 20, 20);
          vertical-align: center;
        }

        tbody td {
          padding: .5em .625em .625em;
          font-size: .875em;
          color: rgb(50, 50, 50);
          text-align: left;
          vertical-align: top;
        }

        td .b {
          font-weight: 700;
        }

        td .d {
          margin: 5px 0 0 0;
        }


        tr {
          border-bottom: solid 1px rgb(200, 200, 200);
        }

        tr.highlight  {
          background: #808080;
        }

from node-html-pdf.

LucasBurg avatar LucasBurg commented on July 18, 2024

Tanks you 👍 !

from node-html-pdf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.