Jump to content

Collapsing div in a WordPress theme


KevinM1

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.