RGR
RGR

Reputation: 1571

How to exclude line height for visibility hidden td elements

My goal is to set 'AutoWrap' td elements in my grid for visible td elements.

For a specific purpose, I have set visibility:hidden and width:0px to hide td elements for IE8 browser.

It makes the visible td elements height based on hidden autowrapped td elements.

Is there any other way on how to exclude hidden elements height for the visible td elements without using display:none.

Demo

Upvotes: 0

Views: 1083

Answers (1)

Mr. Alien
Mr. Alien

Reputation: 157324

As you commented, you are redundant to use display: none; and if you want to achieve this by only CSS, the best you can do is, use the below CSS rule

table tr td:first-child {
    font-size: 0;
    padding: 0;
}

Demo

Note: You are using border="1" cellspacing="1" which is resulting in a thick border to the left of the table.

Upvotes: 1

Related Questions