robert_gsfame Posted May 6, 2010 Share Posted May 6, 2010 <div id="test" style="display:none"> <tr> <td bgcolor="red"> </td> <td bgcolor="red"> </td> </tr></div> i wish to hide this <tr> using div, but i can't... which part is actually wrong? Link to comment https://forums.phpfreaks.com/topic/200867-cannot-hide-using/ Share on other sites More sharing options...
F1Fan Posted May 6, 2010 Share Posted May 6, 2010 First, please post all code in code tags. The <tr> tag is for a table row inside the <table> tag. You have no table. If you are trying to hide an entire table, use "display: none;" and "display: table;" to hide or show your table, respectively. If you are using the <table> tag and just neglected to show it, replace your <div> tags with <tbody> tags. <tbody> is for a group of rows. You can then hide or show that group of rows. Link to comment https://forums.phpfreaks.com/topic/200867-cannot-hide-using/#findComment-1054079 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.