I have a couple of clearing divs that, when I opened by site up today, they are showing like default divs, rather than having a 0px height.
Fortunately, they’re rendering correctly on the published site, but it makes for difficult layout on the working side. Clicking on the “Hide Empty Divs” doesn’t work on these either. I’m presuming that’s because they’ve actually been styled?
Anyway, I’d appreciate someone checking into this. Here’s an example. Both divs are the same: Class = “.clear_both” width=100% and height=0px. Position and float are the only other styles applied.
The div is actually zeroed OK. What you see is only ebflow designer giving the div a default height just for you to be able to put things in it. But if you publish the site you’ll see the div is zeroed. Notice the dash border + inner gray border, that means it’s a “default” style for webflow designer only.
@vincent,
Yes, I realize this looks like a default div, but default divs do not have any height applied. When I apply a class with a height of 0, it should collapse and do it’s job to clear, and not show any height at all.
As I said, it was rendering correctly in designer view yesterday, and it renders fine on published site, but trying to lay out elements precisely with this gaping div is not good.
And now I’m not sure what’s going on. Both of my “clear_both” classes with a height of 0 have collapsed, but the test divs I was applying 0px height to have not collapsed. Sigh. Hopefully, it will all go back to normal.
Aha you got me confused. I tried it. True. 1px works, 0 px doesnt. I’m confused because I can’t remember if I ever tried to zero an empty div… So I don’t know if it’s a new thing, a bug, or just a normal thing.
Yeah, not sure what’s going on. I’ve always set clearing divs to height:0px, and they collapse. Like I said, it was working fine yesterday… today, this is going on. And now, the originals are back to showing height… grrr. Right now, I’ve had to move on to other things, but I’ll write directly to support later on to look into this.
@vincent,
For the time being, I’ve re-set the areas where there once were clearing divs and have now wrapped them in a div I’ve styled as “overflow:auto.” This is doing the trick for now, but I can’t help wonder what happened with the 0px height.