I don't think Org syntax provides any way to do this at present, but ignore the rest of this message if anyone knows better.
Possible workarounds: 1. Wrap your figure in a #+BEGIN_ADDITIONALCLASS...#+END_ADDITIONALCLASS block, to wrap the div.figure in a div.additionalclass. Not exactly what you wanted, and a pain in the neck if you have many such figures, but gives you enough to work with in CSS. 2. Add javascript to move the extra class attribute from the img to the containing div. 3. Write an export filter. Yours, Christian Matt Price writes: > When exporting images with captions, ox-html currently creates a strucuture > like this: > > > <div class="figure"> > <p><img src="./images/hlevel.png" > alt="hlevel.png"> > </p> > <p><span class="figure-number">Figure 1:</span> > "test"</p> > </div> > > (I've tried setting org-html-html5-fancy" to t, but for whatever > reason this doesn't result in the useo f the <figure> tag. I tried > with emacs -q with no luck). > > I would like to be able to give an additional class to the enclosing <div > class="figure">. Any idea how i might be able to do that? As far > as I can see, org-html--wrap-image does not have access to the org link > element and so can't query for attributes. > > I really appreciate any ideas! Thanks, > Matt > >