Re: How to center an image using quickbook (or a .css)
"Paul A. Bristow" <[email protected]> Sat, 2 Apr 2016 10:00:47 +0100
| Newsgroups | gmane.comp.lib.boost.documentation |
|---|---|
| Message-ID | <[email protected]> |
> -----Original Message----- > From: Boost-docs [mailto:[email protected]] On Behalf Of Daniel James > Sent: 01 April 2016 20:17 > To: John Maddock; Discussion of Boost Documentation > Subject: Re: [Boost-docs] How to center an image using quickbook (or a .css) > > On 1 April 2016 at 17:54, John Maddock <[email protected]> wrote: > > > > I don't know how to do this in quickbook, but in html you need to align the > > surrounding paragraph. > > Unless you make the image a block element, which should be fine if > it's to be centered. So something like: > > img.centre { display:block; margin-left: auto; margin-right: auto; } OK so in the current Boostbook.css, we have /*============================================================================= Images =============================================================================*/ span.inlinemediaobject img { vertical-align: middle; } so where are you suggesting this should be added? (Of course, ideally the Quickbook [align center] should deal with this of course, though a small margin for the [align left] and [align right] might look a little nicer than hard on the edge as now?). Paul --- Paul A. Bristow Prizet Farmhouse Kendal UK LA8 8AB +44 (0) 1539 561830