KevinM1 Posted December 20, 2011 Share Posted December 20, 2011 This is odd. I'm finishing up a WordPress theme for a client, and am getting a collapsing div on an element only after I upload it. The layout looks fine outside of Wordpress, when I test it as straight HTML and CSS in my browsers. The site is located here: http://thesewingdivaquiltshop.com/ The element in question is <div id="content"></div>. Any help would be greatly appreciated. Quote Link to comment https://forums.phpfreaks.com/topic/253565-collapsing-div-in-a-wordpress-theme/ Share on other sites More sharing options...
floridaflatlander Posted December 20, 2011 Share Posted December 20, 2011 Collapsing margin or a collapsing div? I looked at content in firefug and it's not floated but it is collapsed yet .content-box is floated. Try floating content or adding a <br /> at the bottom and style clear both Quote Link to comment https://forums.phpfreaks.com/topic/253565-collapsing-div-in-a-wordpress-theme/#findComment-1299862 Share on other sites More sharing options...
KevinM1 Posted December 20, 2011 Author Share Posted December 20, 2011 Collapsing margin or a collapsing div? Good point. Edited. I looked at content in firefug and it's not floated but it is collapsed yet .content-box is floated. Try floating content or adding a <br /> at the bottom and style clear both I tried adding the <br /> but I'm away from my dev machine and WordPress' shitty editor won't actually render it, even though it's there in the file. I'll try floating the content later, as I need a break from this POS site for a while. Quote Link to comment https://forums.phpfreaks.com/topic/253565-collapsing-div-in-a-wordpress-theme/#findComment-1299866 Share on other sites More sharing options...
KevinM1 Posted December 20, 2011 Author Share Posted December 20, 2011 Solved it, I think. Looks like the explicit heights I set for those boxes were screwing things up. Not sure why. Maybe the text I had was overrunning the height. Looks like it's fixed now. Quote Link to comment https://forums.phpfreaks.com/topic/253565-collapsing-div-in-a-wordpress-theme/#findComment-1299870 Share on other sites More sharing options...
floridaflatlander Posted December 20, 2011 Share Posted December 20, 2011 Did you do it off line, firebug still says the content div is collapsed. Did you add the <p></p> tags for a spacer? Quote Link to comment https://forums.phpfreaks.com/topic/253565-collapsing-div-in-a-wordpress-theme/#findComment-1299888 Share on other sites More sharing options...
KevinM1 Posted December 20, 2011 Author Share Posted December 20, 2011 No. Odd... It looks right, but the div is still collapsing. To be honest, I don't think I need that containing div anyway. I'll play with it later. Quote Link to comment https://forums.phpfreaks.com/topic/253565-collapsing-div-in-a-wordpress-theme/#findComment-1299921 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.