emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* applying html classes to the "figure div on HTML export
@ 2013-09-19 18:14 Matt Price
       [not found] ` <m2bo3oiqd3.fsf@uio.no>
  0 siblings, 1 reply; 3+ messages in thread
From: Matt Price @ 2013-09-19 18:14 UTC (permalink / raw)
  To: Org Mode

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-09-19 21:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-19 18:14 applying html classes to the "figure div on HTML export Matt Price
     [not found] ` <m2bo3oiqd3.fsf@uio.no>
2013-09-19 20:10   ` Matt Price
2013-09-19 21:06     ` Christian Moe

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).