Make WordPress Core

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#32414 closed enhancement (worksforme)

Why width:33% for gallery-item ?

Reported by: stagger-lee's profile Stagger Lee Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.2.2
Component: Gallery Keywords:
Focuses: Cc:


Is there any specific reason for that ?
Why not 33.333% ?

On almost all themes difference between left-right "margin" is visible with naked eye. With 33.333, or more % is not visible at all.

Want just to hear is it some explanation for this.

Change History (2)

#1 @obenland
9 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from new to closed

When galleries became part of core in [6659] it was hardcoded to 33%. In [7516] it was changed to be dynamic to allow for more or less columns than 3.

So the reason for 33% vs 33.333% is that probably no one cared enough about it to change it. Unless a theme's content-width is really wide (say >600px) it's probably not something that is too obvious anyway.

#2 @Stagger Lee
9 years ago

Thanks for reply.
It is so small thing. Just change it if there are no undesired consequences. Not big deal.

It is visible with naked eyes in many of the cases.

Easy to fix with !important declaration in theme css for now.

Note: See TracTickets for help on using tickets.