Click to See Complete Forum and Search --> : problems with divs


haba
12-04-2008, 06:24 AM
Hi,

Overall I'm a html noob and I always used tables to get the results I wanted. Now I'm trying to get the hang of divs, but I'm having some problems. Check this very very simple page:

This page! (http://web.ist.utl.pt/pedro.nogueira/wrong/default.html)

I can't understand why there are no borders around the cell that says "not ok", as the borders are set, in the css, to the div wrap which contains that cell...
Btw, it seems to give the desired output in IE...

Any help?

Thanks!

javawebdog
12-04-2008, 07:49 AM
Can we see the .css?

haba
12-04-2008, 07:54 AM
Can we see the .css?

Of course: CSS (http://web.ist.utl.pt/pedro.nogueira/wrong/style.css)

javawebdog
12-04-2008, 07:58 AM
container has no border attributes defined in your css.

haba
12-04-2008, 08:01 AM
container has no border attributes defined in your css.

But wrap has, and container is inside wrap... no?

javawebdog
12-04-2008, 08:20 AM
Your right.
I played around a bit and found that in FF the default height of #wrap is insufficient. When I added a specific value (100px) it worked fine. Have to admit ... stumped.

haba
12-04-2008, 08:27 AM
Your right.
I played around a bit and found that in FF the default height of #wrap is insufficient. When I added a specific value (100px) it worked fine. Have to admit ... stumped.

Ah! that worked! thanks!