[wp-trac] [WordPress Trac] #44004: TwentySeventeen Theme - CSS issue when using rowspan in tables

WordPress Trac noreply at wordpress.org
Tue May 8 15:05:02 UTC 2018


#44004: TwentySeventeen Theme - CSS issue when using rowspan in tables
-----------------------------+------------------------------
 Reporter:  aussi            |       Owner:  (none)
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Bundled Theme    |     Version:  4.9.5
 Severity:  minor            |  Resolution:
 Keywords:  has-screenshots  |     Focuses:
-----------------------------+------------------------------
Changes (by subrataemfluence):

 * keywords:   => has-screenshots


Comment:

 We have a 0.4em padding set for all `td` elements, which makes the content
 to stay nicely inside the `td` with an equal small padding all sides.


 {{{
 td {
    padding: 0.4em;
 }
 }}}


 But since the pseudo elements `:first-child` and `:last-child` have a left
 padding set to `0` just below the above rule, I feel we need to apply the
 same for `td` and `th` as well. This will ensure all elements would have
 no left padding but have a padding of `0.4em` on other three sides, i.e.
 `top`, `right` and `bottom`.

 The following works for me.

 {{{
 th:first-child,
 td:first-child,
 td,
 th {
    padding-left: 0;
 }
 }}}

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


More information about the wp-trac mailing list