Forum Moderators: not2easy

Message Too Old, No Replies

Spacing Problem

         

harish_s

12:35 pm on Jul 2, 2009 (gmt 0)

10+ Year Member



I have a div with margin and padding in it. And i want to hide the content inside the div. Iam using js to show, hide process. The problem is when i tried to hide the content, it gets hide but the spacing or the gap remains the same. Firefox renders properly, but not in ie. How can i solve this issue in ie using css?

jameshopkins

4:42 pm on Jul 2, 2009 (gmt 0)

10+ Year Member



The safest option would be to remove the element itself, as opposed to just the elements content, by setting 'display:none'