From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rick Frankel Subject: Re: css classes to tables in html export Date: Wed, 19 Feb 2014 16:07:44 -0500 Message-ID: <20140219210744.GA45661@eyeBook> References: <20140216213104.GA28092@koalpara.local> <20140217202213.GA11005@eyeBook> <20140218170850.GA30415@koalpara.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34603) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGEN1-0005rR-1t for emacs-orgmode@gnu.org; Wed, 19 Feb 2014 16:08:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WGEMt-0005Q5-Nw for emacs-orgmode@gnu.org; Wed, 19 Feb 2014 16:07:55 -0500 Received: from mail.rickster.com ([204.62.15.78]:45957) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGEMt-0005Py-KT for emacs-orgmode@gnu.org; Wed, 19 Feb 2014 16:07:47 -0500 Received: from eyeBook.localhost (pool-108-30-149-199.nycmny.fios.verizon.net [108.30.149.199]) by mail.rickster.com (Postfix) with ESMTPS id BAE7A264CF for ; Wed, 19 Feb 2014 16:07:47 -0500 (EST) Content-Disposition: inline In-Reply-To: <20140218170850.GA30415@koalpara.local> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org 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: > > So, use the class attribute. #+ATTR_HTML: :class table table-striped table-bordered table-condensed | a | b | c | |---+---+---| | 1 | 2 | 3 |
> > 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 > >
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
abc
123
> > > > > > #+END_HTML > > > > > > rick