jwk811 Posted December 16, 2006 Share Posted December 16, 2006 this is my code[code]<div id="word"><td style="border-right:1px solid #DCDCDC; border-bottom:1px solid #DCDCDC;" align="center" width="120"> <?php echo $word; ?> </td></div><div id="edit_word" style="display: none"><td style="border-right:1px solid #DCDCDC; border-bottom:1px solid #DCDCDC;" align="center" width="120"> <input type="text" name="word" id="word" size="10" value="<?php echo $word; ?>"> </td></div>[/code]the second div displays when its not supposed to, why? this has happend to me before and in another time it worked but i just cant figure out why it is doing this... thank you for any help Link to comment https://forums.phpfreaks.com/topic/30832-help-please-divs-are-displaying-when-not-supposed-to/ Share on other sites More sharing options...
sparrow3274 Posted December 16, 2006 Share Posted December 16, 2006 hello,it looks like it's because you have your <div> wrapping around the <td>, if you move the div inside the td... the display: hidden will work Link to comment https://forums.phpfreaks.com/topic/30832-help-please-divs-are-displaying-when-not-supposed-to/#findComment-142212 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.