Style:Display and Visibility errors ?
Posted
by dhaliwaljee
on Stack Overflow
See other posts from Stack Overflow
or by dhaliwaljee
Published on 2010-06-02T12:29:02Z
Indexed on
2010/06/02
12:33 UTC
Read the original article
Hit count: 236
< table border="1" cellpadding="0" cellspacing="0" width="100%">
< tr>
< td>1< /td>
< td>1< /td>
< td>1< /td>
< td>1< /td>
< td>1< /td>
</tr>
< tr style="display:block ">
< td>2< /td>
< td>2< /td>
< td>2< /td>
< td>2< /td>
< td>2< /td>
</ tr>
< tr style="visibility:hidden ">
< td>3< /td>
< td>3< /td>
< td>3< /td>
< td>3< /td>
< td>3< /td>
< /tr>
< tr style="visibility:hidden ">
< td>4< /td>
< td>4< /td>
< td>4< /td>
< td>4< /td>
< td>4< /td>
< /tr>
< tr>
< td>5< /td>
< td>5< /td>
< td>5< /td>
< td>5< /td>
< td>5< /td>
< /tr>
< tr>
< td>6< /td>
< /tr>
< tr>
< td>7< /td>
< /tr>
< /table>
see the code I am using visibility and display for hidden or showing rows but both have errors
Visibility hide the row but do not removed space, like "display:none",
I can use "display" but it is not working properly with safari and Firefox.
Please give me solution for it. My requirement is:-
Hide the row and also removed its space on all browsers.
© Stack Overflow or respective owner