homepage Welcome to WebmasterWorld Guest from 54.227.215.139
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

    
Spacing Problem
harish_s

5+ Year Member



 
Msg#: 3944795 posted 12:35 pm on Jul 2, 2009 (gmt 0)

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

5+ Year Member



 
Msg#: 3944795 posted 4:42 pm on Jul 2, 2009 (gmt 0)

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved