Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-5959

Inline attachment div not centrable if image is resized

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Resolution: Fixed
    • Affects Version/s: 3.0.RC5
    • Fix Version/s: 3.0.0
    • Component/s: Viewing posts
    • Labels:
      None
    • Environment:
      PHP Environment:
      Database:

      Description

      Not sure if this is a style-related issue. Anyway, we're talking about prosilver.

      If you attach an image inline and put it inside a [center] tag (<div style="text-align: center">...</div>) the image is correctly centered, unless it got resized and linked; in this case the image is included within a div (class="inline-attachment") and a dl (class="thumbnail") which are 100% wide.
      This causes two problems:

      • the image is not centrable (the legend is, but the image itself isn't);
      • if you click on the right of the image, it is selected, although you didn't click OVER the image, which is kinda surprising.

      Proof of concept: http://www.gennarino.org/forum3/viewtopic.php?p=401#p401 (first image got resized, second one didn't; both should be centered; note the legend of the first image).

      I guess that applying a "margin: auto" somewhere should solve the issue.

        Attachments

          Activity

            People

            • Assignee:
              Acyd Burn Meik Sievertsen [X] (Inactive)
              Reporter:
              Nicholas the Italian Nicholas the Italian [X] (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: