[wp-trac] [WordPress Trac] #46881: Site Health: improve the header elements horizontal centering
WordPress Trac
noreply at wordpress.org
Thu Apr 18 15:36:50 UTC 2019
#46881: Site Health: improve the header elements horizontal centering
-------------------------------------------------+-------------------------
Reporter: afercia | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: Administration | Version: trunk
Severity: normal | Resolution:
Keywords: has-screenshots site-health needs- | Focuses:
design-feedback |
-------------------------------------------------+-------------------------
Comment (by afercia):
To make the two menu items have the same width irrespectively of the
length of their text, these two lines of CSS could be used on the `nav`
element. Works nicely in modern browsers:
{{{
display: inline-grid;
grid-template-columns: 1fr 1fr;
}}}
See attached screenshot below.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46881#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list