Forum Moderators: not2easy

Message Too Old, No Replies

Table not expanding DIV in FF

A nested DIV's content expands the DIV successfully, except for tables inFF

         

AstonJay32

2:26 pm on Aug 25, 2005 (gmt 0)

10+ Year Member



Hello everyone, great site by the way. It's about time I've finally joined!

Here's what I got, I'm sure you've all seen some flavor of this issue before.

Using a nested DIV scenario, I'd like the child DIVs to expand their borders as well as their parents borders as content fills them. I've gotten this to work in IE (the more forgiving/misbehaving expander) but I'm struggling a bit in FF with tables. Regular content, paragraphs, headers, etc, expand the DIVs as they should in FF, but when I add a table it overflows. I've tried to specificially set the child DIV's table property to height:auto, but it still overflows.

I'm sure this issue has to do with the specificity of my CSS. What's the correct way to define Table elements that are nested a few levels down?

And on a random unrelated note, does anybody know why FF seems to ignore the lineheight property?

Thanks in advance

Span

10:05 pm on Aug 27, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It's about time I've finally joined!

Yes, you're late... and it's about time some says Hey AstonJay32, Welcome to the forums!

To start with your random unrelated note, as far as I can see, FF does support the line-height property - but note the "-" in between.

It's hard to say what's going on with your overflowing div. I just nested eight divs, added a table, pasted the contents of your post in there, added "height:auto;" to some divs but nothing overflowed (Mac/FF).

Maybe you should post some relevant code and CSS?

AstonJay32

1:28 pm on Aug 30, 2005 (gmt 0)

10+ Year Member



Thanks for your response Span,

Well, naturally when tyring to reproduce the error, it stopped happening. This wasn't my page to begin with, I'm doing some editing, and I see there was a bit of CSS-hacking going on. When starting from scratch using the same nesting configuration it worked fine, so who knows.

King_Kong

4:14 pm on Aug 30, 2005 (gmt 0)

10+ Year Member



How are you clearing your floats?

If you're using the overflow: hidden method (ie not using clearer divs), this can cause problems within Firefox when using tables (AFAIK only on the windows version).

AstonJay32

4:32 pm on Aug 30, 2005 (gmt 0)

10+ Year Member



I'm not floating, I'm using relative positioning. Is this my problem? I didn't think so, because with a barebones example I can do this no problem, in either IE or FF. But for some reason there's something going on that's trumping the ability of the inner Div to expand the parent with a table. I've hacked around it for the time being, which I'm normally totally against, but this thing needs to launch today.