Click here to get back home

Problems with min-height

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Problems with min-height amandadev@gmail.com 11-15-2006
Get Chitika Premium
Posted by amandadev@gmail.com on November 15, 2006, 3:38 pm
Please log in for more thread options


Hi there,

I actually have two problems with the following site:
http://coombes.amandadevries.com:

1. Why does Firefox ignore my request for a 'red' background for my
.container? IE doesn't.
2. Why does Firefox ignore my 'min-height:50%' for the container?
Again, IE doesn't. See
"http://coombes.amandadevries.com/people/Duong.html" to see what I
mean. Because the height is only determined by my text, my image hangs
out of the container.

Both pages pass validation, as does the CSS, with the exception of one
error.

And yes, I use a table for the footer because I can't figure out
another way to have each phrase aligned as you see them...if anyone has
suggestions I'm all ears!

Thanks,
Amanda
www.amandadevries.com


Posted by Harlan Messinger on November 15, 2006, 4:12 pm
Please log in for more thread options


amandadev@gmail.com wrote:
> Hi there,
>
> I actually have two problems with the following site:
> http://coombes.amandadevries.com:
>
> 1. Why does Firefox ignore my request for a 'red' background for my
> .container? IE doesn't.

Strange. I see a black background, but the DOM inspector shows the
computed background color for that DIV is rgb(102, 51, 51).

Posted by Ben C on November 15, 2006, 4:46 pm
Please log in for more thread options


> amandadev@gmail.com wrote:
>> Hi there,
>>
>> I actually have two problems with the following site:
>> http://coombes.amandadevries.com:
>>
>> 1. Why does Firefox ignore my request for a 'red' background for my
>> .container? IE doesn't.
>
> Strange. I see a black background, but the DOM inspector shows the
> computed background color for that DIV is rgb(102, 51, 51).

The background colour is rgb(102, 51, 51), but you don't see any of the
background colour because the .container div is completely full of
(black) things. If you give it a bit of padding you see the #633 (102,
51, 51) colour around the edges.

Posted by Harlan Messinger on November 15, 2006, 4:56 pm
Please log in for more thread options


Ben C wrote:
>> amandadev@gmail.com wrote:
>>> Hi there,
>>>
>>> I actually have two problems with the following site:
>>> http://coombes.amandadevries.com:
>>>
>>> 1. Why does Firefox ignore my request for a 'red' background for my
>>> .container? IE doesn't.
>> Strange. I see a black background, but the DOM inspector shows the
>> computed background color for that DIV is rgb(102, 51, 51).
>
> The background colour is rgb(102, 51, 51), but you don't see any of the
> background colour because the .container div is completely full of
> (black) things. If you give it a bit of padding you see the #633 (102,
> 51, 51) colour around the edges.

I hadn't dug all the way down. Most of the items under it have a
transparent background, but now I see that the navigation list has a
black background. On the other hand, the paragraph and div that follow
the div containing the navigation list have transparent backgrounds, and
so do all their children.

I see the rest of the problem now. Everything inside the container div
is floated or has only floated children. Therefore, the container div
itself doesn't envelop them and has no height. The table used for the
footer has clear: both; which is why it's entirely below the container div.

I gather that in IE the container div IS enveloping its children.

Isn't the solution to float the container div and give it explicit
width: 100%?

Posted by Ben C on November 15, 2006, 5:04 pm
Please log in for more thread options


> Ben C wrote:
>>> amandadev@gmail.com wrote:
>>>> Hi there,
>>>>
>>>> I actually have two problems with the following site:
>>>> http://coombes.amandadevries.com:
>>>>
>>>> 1. Why does Firefox ignore my request for a 'red' background for my
>>>> .container? IE doesn't.
>>> Strange. I see a black background, but the DOM inspector shows the
>>> computed background color for that DIV is rgb(102, 51, 51).
>>
>> The background colour is rgb(102, 51, 51), but you don't see any of the
>> background colour because the .container div is completely full of
>> (black) things. If you give it a bit of padding you see the #633 (102,
>> 51, 51) colour around the edges.
>
> I hadn't dug all the way down. Most of the items under it have a
> transparent background, but now I see that the navigation list has a
> black background. On the other hand, the paragraph and div that follow
> the div containing the navigation list have transparent backgrounds, and
> so do all their children.
>
> I see the rest of the problem now. Everything inside the container div
> is floated or has only floated children. Therefore, the container div
> itself doesn't envelop them and has no height.

> footer has clear: both; which is why it's entirely below the container div.
>
> I gather that in IE the container div IS enveloping its children.

Sounds like the sort of incorrect thing it would probably do...

> Isn't the solution to float the container div and give it explicit
> width: 100%?

That should work well, yes. Then the container will be the "block
formatting context box" for the floats, which makes it grow to encompass
them.

Similar ThreadsPosted
problems tag img January 23, 2007, 8:43 am
Problems with IE February 19, 2008, 1:14 am
Problems with iframe tag September 14, 2004, 6:24 pm
problems with JavaScript February 10, 2005, 5:32 pm
Google Bot problems? March 9, 2005, 3:03 pm
Problems with DOCTYPES April 1, 2005, 11:22 am
# giving me problems May 5, 2005, 7:11 am
Problems with Homesite 5 & SSL FTP June 2, 2005, 4:37 am
W3C Validation Problems June 25, 2005, 4:21 am
XHTML Problems July 3, 2005, 8:19 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap