View Single Post
Old 08-19-2014, 04:46 AM   #39
GMcG
Writer
GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.
 
GMcG's Avatar
 
Posts: 101
Karma: 590630
Join Date: Mar 2011
Location: Munich, Germany
Device: none
In Sigil and in Calibre the width of the cover.jpg is defined in the <img> tag, not in the stylesheet.
In Sigil it is simply width="100%", in Calibre it is like style="width: 100%" (actually it is height).

You could try the same with your ornament.

in HTML
<p class="img"><img alt="verse break" width="38%" src="../Images/ornament-black.jpg" /></p>

in CSS
p.img {
text-indent: 0;
text-align: center;
margin-top: 0.38em;
margin-bottom: 0.38em;
}

As to: "the top margin invariably ended up bigger than the bottom margin"

I think, it has nothing to do with margins, but with the size of the ornament. Probably the height is less than that of the font-size. Because the orientation of the graphic is at the basis of a line, you will get more space above than below. See it in the sample with some text to make it clearer.
You could use the same ornament but in a higher image with some more space at the bottom and less at the top, in other words: lifting it a little bit within the picture. That would compensate the too big margin to the preceeding paragraph.

George
Attached Thumbnails
Click image for larger version

Name:	margins.jpg
Views:	167
Size:	9.2 KB
ID:	127050  
GMcG is offline   Reply With Quote