From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: applying html classes to the "figure div on HTML export Date: Thu, 19 Sep 2013 14:14:42 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34977) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMikX-0005nG-00 for emacs-orgmode@gnu.org; Thu, 19 Sep 2013 14:14:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VMikW-00008L-6i for emacs-orgmode@gnu.org; Thu, 19 Sep 2013 14:14:44 -0400 Received: from mail-ee0-x234.google.com ([2a00:1450:4013:c00::234]:64954) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMikV-000084-W9 for emacs-orgmode@gnu.org; Thu, 19 Sep 2013 14:14:44 -0400 Received: by mail-ee0-f52.google.com with SMTP id c41so4316269eek.39 for ; Thu, 19 Sep 2013 11:14:42 -0700 (PDT) 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: Org Mode Hi, Is there a way to apply an HTML class to the the
element which is generated around an image link on HTML export? I am making a presentation using org--> deck.js (ox-deck.el), and I want most of my images to be centred, but in cases where I have more than one image, I want them to display in rows using the float:left property. If I just float the images using #+ATTR_HTML: :style float:left then their captions do not display consistently above or below them. I can use CSS to addres every div.figure, but that forces ALL images to be aligned to the left-hand side of the slide, which is not what I want. I think I could also write some javascript to add the class dynamically when there's more than one div.figure in a div.slide, but I odn't understand deck well enough to be sure how to do that. Any suggestions? Thanks! Matt