* css classes to tables in html export
@ 2014-02-16 21:31 Vikas Rawal
[not found] ` <20140217202213.GA11005@eyeBook>
2014-03-01 8:11 ` Bastien
0 siblings, 2 replies; 5+ messages in thread
From: Vikas Rawal @ 2014-02-16 21:31 UTC (permalink / raw)
To: emacs-orgmode
How do I add custom css classes to tables while publishing my project?
Vikas
^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <20140217202213.GA11005@eyeBook>]
* Re: css classes to tables in html export
[not found] ` <20140217202213.GA11005@eyeBook>
@ 2014-02-18 17:08 ` Vikas Rawal
2014-02-19 21:07 ` Rick Frankel
0 siblings, 1 reply; 5+ messages in thread
From: Vikas Rawal @ 2014-02-18 17:08 UTC (permalink / raw)
To: Rick Frankel; +Cc: emacs-orgmode
Sorry, you forgot to reply to the mailing list. I am copying mailing
list in my reply. I hope it sticks to the thread.
My intent was to add classes, so that when I export to html, I get
something like this:
<Table class="table table-striped table-bordered table-condensed">
Vikas
On Mon, Feb 17, 2014 at 03:22:13PM -0500, Rick Frankel wrote:
> On Sun, Feb 16, 2014 at 10:31:04PM +0100, Vikas Rawal wrote:
> > How do I add custom css classes to tables while publishing my project?
> >
>
> * Table attributes
> This
> #+BEGIN_EXAMPLE
> #+ATTR_HTML: :style background-color:grey :cellpadding 1em
> | a | b | c |
> |---+---+---|
> | 1 | 2 | 3 |
> #+END_EXAMPLE
>
> results in this:
>
> #+BEGIN_HTML
> <table border="2" cellspacing="0" cellpadding="1em" rules="groups" frame="hsides" style="background-color:grey">
>
> <colgroup>
> <col class="right" />
>
> <col class="right" />
>
> <col class="right" />
> </colgroup>
> <thead>
> <tr>
> <th scope="col" class="right">a</th>
> <th scope="col" class="right">b</th>
> <th scope="col" class="right">c</th>
> </tr>
> </thead>
> <tbody>
> <tr>
> <td class="right">1</td>
> <td class="right">2</td>
> <td class="right">3</td>
> </tr>
> </tbody>
> </table>
> </div>
> </div>
> #+END_HTML
>
>
> rick
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: css classes to tables in html export
2014-02-18 17:08 ` Vikas Rawal
@ 2014-02-19 21:07 ` Rick Frankel
2014-02-22 20:57 ` Vikas Rawal
0 siblings, 1 reply; 5+ messages in thread
From: Rick Frankel @ 2014-02-19 21:07 UTC (permalink / raw)
To: emacs-orgmode
On Tue, Feb 18, 2014 at 06:08:50PM +0100, Vikas Rawal wrote:
> Sorry, you forgot to reply to the mailing list. I am copying mailing
> list in my reply. I hope it sticks to the thread.
>
> My intent was to add classes, so that when I export to html, I get
> something like this:
>
> <Table class="table table-striped table-bordered table-condensed">
So, use the class attribute.
#+ATTR_HTML: :class table table-striped table-bordered table-condensed
| a | b | c |
|---+---+---|
| 1 | 2 | 3 |
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides" class="table table-striped table-bordered table-condensed">
>
> On Mon, Feb 17, 2014 at 03:22:13PM -0500, Rick Frankel wrote:
> > On Sun, Feb 16, 2014 at 10:31:04PM +0100, Vikas Rawal wrote:
> > > How do I add custom css classes to tables while publishing my project?
> > >
> >
> > * Table attributes
> > This
> > #+BEGIN_EXAMPLE
> > #+ATTR_HTML: :style background-color:grey :cellpadding 1em
> > | a | b | c |
> > |---+---+---|
> > | 1 | 2 | 3 |
> > #+END_EXAMPLE
> >
> > results in this:
> >
> > #+BEGIN_HTML
> > <table border="2" cellspacing="0" cellpadding="1em" rules="groups" frame="hsides" style="background-color:grey">
> >
> > <colgroup>
> > <col class="right" />
> >
> > <col class="right" />
> >
> > <col class="right" />
> > </colgroup>
> > <thead>
> > <tr>
> > <th scope="col" class="right">a</th>
> > <th scope="col" class="right">b</th>
> > <th scope="col" class="right">c</th>
> > </tr>
> > </thead>
> > <tbody>
> > <tr>
> > <td class="right">1</td>
> > <td class="right">2</td>
> > <td class="right">3</td>
> > </tr>
> > </tbody>
> > </table>
> > </div>
> > </div>
> > #+END_HTML
> >
> >
> > rick
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: css classes to tables in html export
2014-02-16 21:31 css classes to tables in html export Vikas Rawal
[not found] ` <20140217202213.GA11005@eyeBook>
@ 2014-03-01 8:11 ` Bastien
1 sibling, 0 replies; 5+ messages in thread
From: Bastien @ 2014-03-01 8:11 UTC (permalink / raw)
To: Vikas Rawal; +Cc: emacs-orgmode
Hi Vikas,
Vikas Rawal <vikaslists@agrarianresearch.org> writes:
> How do I add custom css classes to tables while publishing my
> project?
C-h v org-html-table-* TAB
HTH,
--
Bastien
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-03-01 8:11 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-16 21:31 css classes to tables in html export Vikas Rawal
[not found] ` <20140217202213.GA11005@eyeBook>
2014-02-18 17:08 ` Vikas Rawal
2014-02-19 21:07 ` Rick Frankel
2014-02-22 20:57 ` Vikas Rawal
2014-03-01 8:11 ` Bastien
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.