[wp-trac] [WordPress Trac] #27762: Remove whitespace between menu items
WordPress Trac
noreply at wordpress.org
Fri Apr 11 16:31:50 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 | Keywords: needs-patch good-first-bug
Focuses: |
--------------------------+----------------------------------------
To position nav menus horizontally, developers have to resort to
[https://href.li/?http://www.vanseodesign.com/css/inline-blocks/ the
floating hack] to avoid spacing between menu items. The spacing is caused
by line breaks after each menu element (`li`s). They were introduced in
r14248 to create readable markup (I assume),
[https://cloudup.com/cRyUUXHv4Tw which is very inconsistent today].
This might break visual backwards compatibility for themes that are using
inline-block and count on the whitespace to provide spacing between menu
items. Which should be an extreme edge case, since
[https://core.trac.wordpress.org/browser/tags/3.8.2/src/wp-includes/post-
template.php#L930 there is no whitespace in the default fallback],
`wp_page_menu()`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27762>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list