[wp-trac] [WordPress Trac] #27762: Remove whitespace between menu items

WordPress Trac noreply at wordpress.org
Sat Aug 30 16:39:46 UTC 2014


#27762: Remove whitespace between menu items
--------------------------------------+------------------------------
 Reporter:  obenland                  |       Owner:
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  Menus                     |     Version:  3.0
 Severity:  minor                     |  Resolution:
 Keywords:  good-first-bug has-patch  |     Focuses:
--------------------------------------+------------------------------

Comment (by emzo):

 Removing whitespace is the only current solution that is 100% guaranteed
 to work. I agree, it's not perfect, but every other solution is
 problematic. See http://davidwalsh.name/remove-whitespace-inline-block for
 more details.

 Setting the font-size of the parent element to 0 doesn't work on many
 Android devices (it's fixed in later versions, but there are millions of
 android devices out there).

 The negative margin solution is a bad idea, since you can't always be
 certain of the width of a single space character. It's very hit-and-miss.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27762#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list