Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#32414 closed enhancement (worksforme)

Why width:33% for gallery-item ?

Reported by: Stagger Lee Owned by:
Priority: normal Milestone:
Component: Gallery Version: 4.2.2
Severity: normal Keywords:
Cc: Focuses:

Description

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
11 years ago

  • Milestone Awaiting Review
  • Resolution → worksforme
  • Status new → 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
11 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.