Make WordPress Core

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#26194 closed defect (bug) (fixed)

Twenty Fourteen: image alignment issue with double images

Reported by: janhenckens's profile janhenckens Owned by: lancewillett's profile lancewillett
Milestone: 3.8 Priority: normal
Severity: normal Version:
Component: Bundled Theme Keywords: needs-patch
Focuses: Cc:

Description

When adding 2 images that directly follow each other and are both aligned on the same side of the page (left of right), the second image is displayed on top of the first one.

Attachments (3)

Screen Shot 2013-11-24 at 14.25.48.png (228.2 KB) - added by janhenckens 10 years ago.
test-with-text.png (128.2 KB) - added by janhenckens 10 years ago.
26194.diff (1.0 KB) - added by koki4a 10 years ago.
Fixes the overlapping problem when aligning consecutive images the same direction.

Download all attachments as: .zip

Change History (8)

#1 @lancewillett
10 years ago

  • Milestone changed from Awaiting Review to 3.8

#2 @lancewillett
10 years ago

I was able to repeat this. I'm voting we don't fix, since for multiple images in a row you'd probably use a WP gallery.

But, if we do fix it it'd probably be some CSS selectors to do img + img or nth img.

#3 @janhenckens
10 years ago

With some further testing I see that the problem also occurs when adding text and aligned images.
In de screenshot attached (test-with-text.png) there's <p><img><p><img> on the page.

@koki4a
10 years ago

Fixes the overlapping problem when aligning consecutive images the same direction.

#4 @lancewillett
10 years ago

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

In 26363:

Twenty Fourteen: fix overlap issue when aligning consecutive images in the same direction. Props koki4a and janhenckens, fixes #26194.

#5 @iamtakashi
10 years ago

#26193 was marked as a duplicate.

Note: See TracTickets for help on using tickets.