GithubHelp home page GithubHelp logo

Unexpected table borders about org-reveal HOT 2 CLOSED

yjwen avatar yjwen commented on August 10, 2024 1
Unexpected table borders

from org-reveal.

Comments (2)

yjwen avatar yjwen commented on August 10, 2024

Hi, kaushalmodi,

You can specify your own table style in a .CSS file, and let org-reveal to include that .CSS into your presentation.

To include CSS file, specify the CSS files' path in #+REVEAL_EXTRA_CSS, for example:

#+REVEAL_EXTRA_CSS: ./extra.css

Then, in extra.css, specify the table cell's border by:

.reveal td {
    border: 1px solid black;
}

from org-reveal.

kaushalmodi avatar kaushalmodi commented on August 10, 2024

Thanks for the tip, I added the following to the extra css to get the tables look to my liking:

.reveal th {
    font-weight   : bold;
    text-align    : left;
    padding       : 0.1em 0.5em 0.1em 0.5em; /*top right bottom left */
    border-top    : 1px solid;
    border-right  : 1px solid transparent;
    border-bottom : 1px solid;
    border-left   : 1px solid transparent;
}

.reveal td {
    text-align: left;
    padding: 0.1em 0.5em 0.1em 0.5em; /*top right bottom left */
    border-left: 1px solid transparent;
    border-right: 1px solid transparent;
}

.reveal table {
    margin: auto;
    border-collapse: collapse;
    border: 0;
    border-top: 1px solid;
    border-bottom: 1px solid;
    border-spacing: 0;
}

from org-reveal.

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.