Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#5828 closed defect (bug) (fixed)

floated left gallery images break blog layout

Reported by: nbachiyski Owned by:
Milestone: 2.5 Priority: normal
Severity: normal Version:
Component: General Keywords: gallery has-patch
Focuses: Cc:


Steps to reproduce:

  1. Use a theme, which doesn't clear the floats after the post content (there are many of them)
  2. Upload one photo
  3. Insert [gallery] in your post
  4. Save/Publish

Current: the next section, after the photo is pulled on the left of the photo, on the same line

Expected: the next section is below the photo

Here is a patch, which adds <br style="clear: both;" /> in the end of the gallery div.

Attachments (1)

gallery-clear.diff (283 bytes) - added by nbachiyski 10 years ago.

Download all attachments as: .zip

Change History (3)

#1 @andy
10 years ago

excellent, thanks Nikolay

#2 @ryan
10 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [6801]) Fix floated left gallery layout breaks. Prop s nbachiyski. fixes #5828

Note: See TracTickets for help on using tickets.