Skip to content

Align center on figure does not respect width setting #103

Closed
@Luthaf

Description

Describe the bug

I have the following rst (I can create a standalone example if that helps):

.. figure:: some-image.svg
    :width: 400px
    :align: center

I would expect that the resulting HTML renders the images centred in the main column, but with the requested width. Instead, the image takes half of the main column width (352px in my case), regardless of the requested width.

Desktop (please complete the following information):

  • OS: macOS 14.6
  • Browser: Chrome & Firefox & Safari all render the same

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions