5

I know that I can align images in html export with the property #+ATTR_HTML: :align right upon each image link. But can I set a default for the org-document so that I do not have to add the property to each image?

1 Answer 1

2

You can override the style used for images by adding custom CSS at the beginning of your document:

#+HTML_HEAD_EXTRA: <style> .figure p {text-align: right;}</style>

The above is because images are exported to HTML as a div of class figure, with a paragraph element p containing.

1
  • Perfect, exactly what I needed. Thanks a lot!
    – Patrick
    Commented May 19, 2018 at 12:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.