[wp-trac] [WordPress Trac] #46881: Site Health: improve the header elements horizontal centering
WordPress Trac
noreply at wordpress.org
Sun Jun 9 09:37:32 UTC 2019
#46881: Site Health: improve the header elements horizontal centering
-------------------------------------------------+-------------------------
Reporter: afercia | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 5.2.2
Component: Administration | Version: 5.2
Severity: normal | Resolution:
Keywords: has-screenshots site-health has- | Focuses:
design-feedback has-patch |
-------------------------------------------------+-------------------------
Comment (by afercia):
[attachment:"46881.2.diff"] adds the CSS syntax necessary for Internet
Explorer 11.
See in the screenshot below:
- testing in Italian so that the tabs have text with clearly visible
different length
- the red border is for testing purposes, to highlight the tabs have the
same width and are horizontally centered
The resulting CSS is not terrible but is not that great either. I'm not
aware of any other CSS method to horizontally center elements of unknown,
flexible, width. If anyone comes up with a simpler solution, that would be
very welcome :)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46881#comment:28>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list