What seems to work for me is to put a td in the row below with display:none
<table>
<tr>
<td rowspan="2">2 rows</td>
<td>1 row</td>
</tr>
<tr>
<td style="display:none"></td>
<td>1 row</td>
</tr>
</table>
Related Contents:
- Understanding CSS selector priority / specificity
- CSS Pseudo-classes with inline styles
- Why do browsers match CSS selectors from right to left?
- Why doesn’t nth-of-type/nth-child work on nested elements?
- CSS negation pseudo-class :not() for parent/ancestor elements
- How can I select the last element with a specific class, not last child inside of parent?
- How can I style even and odd elements?
- Can I write a CSS selector selecting elements NOT having a certain class or attribute?
- Several elements with the same ID responding to one CSS ID selector
- Are class names in CSS selectors case sensitive?
- How to target a specific column or row in CSS Grid Layout?
- CSS :selected pseudo class similar to :checked, but for elements
- CSS selector by inline style attribute
- Matching the first/nth element of a certain type in the entire document
- Why doesn’t table > tr > td work when using the child selector?
- :last-child not working as expected?
- Using CSS :before and :after pseudo-elements with inline CSS?
- How can I correctly select the first or the last child with CSS?
- A CSS selector to get last visible div
- Using :before and :after CSS selector to insert HTML [duplicate]
- What is syntax for selector in CSS for next element?
- :nth-child(even/odd) selector with class [duplicate]
- How to CSS: select element based on inner HTML [duplicate]
- :not(:empty) CSS selector is not working?
- How to exclude particular class name in CSS selector?
- Difference in applying CSS to html, body, and the universal selector *?
- Select second last element with css
- What is the performance impact of the universal selector?
- What is the ::content/::slotted pseudo-element and how does it work?
- CSS Selector “(A or B) and C”?
- CSS selector with period in ID
- How do I select an element that has a certain class?
- CSS select elements with partial id
- How can I target a specific column or row in a CSS grid layout?
- How can I select elements in CSS by partial ID value?
- How do I give a CSS class priority over an id?
- Can a dynamic class be styled using CSS? [duplicate]
- How to run the CSS3 animation to the end if the selector is not matching anymore?
- How can I get a specific number child using CSS?
- Select first occurring element after another element
- CSS selector for empty or whitespace
- Is it possible to use CSS vars in CSS3 selectors?
- Default :target with CSS
- Is there a reason to use a instead of a:link or a:visited in my stylesheet?
- Why does the general-sibling combinator allow toggling pseudo-element’s content, but not the adjacent-sibling?
- Targeting text nodes with CSS
- Is there a css selector for selecting an element futherup in the html?
- Can a ::before selector be used with a ?
- Avoiding repeated constants in CSS
- Zebra striping a flexbox table with wrapping items