[wp-trac] [WordPress Trac] #63306: Uneven Horizontal Spacing in WordPress Admin .wrap Container (was: There is already 20px padding on the right side, and an additional 2px margin is being applied, making the total spacing 22px..)

WordPress Trac noreply at wordpress.org
Tue May 27 19:38:15 UTC 2025


#63306: Uneven Horizontal Spacing in WordPress Admin .wrap Container
-----------------------------------+------------------------------
 Reporter:  vijaysinh9094          |       Owner:  (none)
     Type:  defect (bug)           |      Status:  new
 Priority:  normal                 |   Milestone:  Awaiting Review
Component:  Administration         |     Version:  3.8
 Severity:  trivial                |  Resolution:
 Keywords:  needs-design-feedback  |     Focuses:  ui, css
-----------------------------------+------------------------------
Changes (by sabernhardt):

 * keywords:   => needs-design-feedback
 * version:  6.8 => 3.8
 * severity:  normal => trivial


Comment:

 @dvpatel also set the left margin to zero—but
 [https://developer.wordpress.org/coding-standards/wordpress-coding-
 standards/css/#values without the unit]—in [https://github.com/WordPress
 /wordpress-develop/pull/8822 PR 8822].

 However, adding the 2 pixels on `.wrap` seems intentional. [26072]
 imported MP6, which changed the `.wrap` spacing
 `margin: 4px 15px 0 0;`
 to
 `margin: 10px 20px 0 2px;`

 On the other hand, `#wpfooter` has padding of 20 pixels on both sides.

 Related: #63305 (on smaller screens, the opposite side has 2 more pixels
 of spacing)

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


More information about the wp-trac mailing list