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 Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.