Login  Register

Re: How to center image caption when the image is centered

Posted by mojavelinux on Nov 01, 2013; 12:12am
URL: https://discuss.asciidoctor.org/How-to-center-image-caption-when-the-image-is-centered-tp901p915.html

@littlepanda,

That's a limitation of the default stylesheet (and stylesheet factory) at the moment. Ideally, the caption should either center with the image or left align to the left edge of the centered image. Both would require updates to the stylesheet.

Those changes can be made directly to the stylesheet [1] or you can include overrides in a docinfo file [2].

Btw, we are looking for design advice on the stylesheet in general. I'm close to the limit of my ability to make it look professional.

Cheers,

-Dan

[1] https://github.com/asciidoctor/asciidoctor-stylesheet-factory/blob/master/sass/components/_asciidoc.scss#L889-L910
[2] http://asciidoctor.org/docs/user-manual/#docinfo-file



On Tue, Oct 29, 2013 at 5:19 AM, littlepanda [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hello,

While it is very easy to center the image, I couldn't find a way to center the caption text (except by changing the generated css). Am I overlooking something?

Thanks.


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/How-to-center-image-caption-when-the-image-is-centered-tp901.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Dan Allen | http://google.com/profiles/dan.j.allen