Hi,

* helix <[email protected]> [17.08.2012 12:33]:
> Hi folks, 
> 
> the subject says it all.
> 
> I use html output with sphinx and the text following an image is floating 
> around it. 
> How can I avoid that?
> 
> I could not find anything matching at the .. image:: definition. 
> Perhaps, there is a simple trick or workaround?

I use a syntax like this to include images:

        Text.

        .. figure:: path/to/image
                :width: 50%
                :align: center
                :name: fig-imagename
                :alt:  fig-imagename

                Description goes here.

        Further text.

The vertical placement is defined in your CSS definitions.. 
search for the following code in your ``basic.css`` file:

        img.align-center, .figure.align-center, object.align-center {
          display: block;
          margin-left: auto;
          margin-right: auto;
        }

There you can add lines like these if necessary:

          margin-top: 3em; 
          margin-bottom: 3em; 


Hope this helps.

Best regards,

Bernhard

Attachment: signature.asc
Description: Digital signature

Reply via email to