emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matt Price <moptop99@gmail.com>
To: Org Mode <emacs-orgmode@gnu.org>
Subject: applying html classes to the "figure div on HTML export
Date: Thu, 19 Sep 2013 14:14:42 -0400	[thread overview]
Message-ID: <CAN_Dec-VAJmujaavpWo8+-QLj4K9VQ3Rue5T5nUepdXbFmM8gQ@mail.gmail.com> (raw)

Hi,

Is there a way to apply an HTML class to the the <div class="figure">
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

             reply	other threads:[~2013-09-19 18:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-19 18:14 Matt Price [this message]
     [not found] ` <m2bo3oiqd3.fsf@uio.no>
2013-09-19 20:10   ` applying html classes to the "figure div on HTML export Matt Price
2013-09-19 21:06     ` Christian Moe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAN_Dec-VAJmujaavpWo8+-QLj4K9VQ3Rue5T5nUepdXbFmM8gQ@mail.gmail.com \
    --to=moptop99@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).