Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

container div height problem

7 views
Skip to first unread message

William Gill

unread,
May 20, 2012, 2:48:12 PM5/20/12
to
Forgive my memory lapses, but I suddenly don't have a clear recollection
of a basic CSS issue.

I have a nested div and the container div is not extending it's height
below the nested one. i.e.:

<div id="container">
<div id="nested">
...
</div>
</div>

I know this is because #nested is floated, and therefore not in the
normal flow. I searched and found two "fixes."
#container{
height: 1%;
overflow: hidden;
}

and something called the clearfix hack.

I don't recall ever using either, or seeing anything here about them.

What am I forgetting? What's the consensus approach?

dorayme

unread,
May 20, 2012, 7:40:22 PM5/20/12
to
In article <jpbe9b$haq$1...@dont-email.me>,
William Gill <nor...@domain.invalid> wrote:

> Forgive my memory lapses, but I suddenly don't have a clear recollection
> of a basic CSS issue.
>
> I have a nested div and the container div is not extending it's height
> below the nested one. i.e.:
>
> <div id="container">
> <div id="nested">
> ...
> </div>
> </div>
>
> ... #nested is floated

<http://netweaver.com.au/floatHouse/>

--
dorayme

tlvp

unread,
May 20, 2012, 8:55:46 PM5/20/12
to
On Mon, 21 May 2012 09:40:22 +1000, dorayme wrote:

> <http://netweaver.com.au/floatHouse/>

On line 1 of <http://netweaver.com.au/floatHouse/page10.php>, wouldn't you
really rather be saying "it behooves" than "it behoves"? Sorry, it's just
that silly little trivia like that leap unaided to mine eyes, and bug me.

Cheers, -- tlvp
--
Avant de repondre, jeter la poubelle, SVP.

BootNic

unread,
May 20, 2012, 10:09:11 PM5/20/12
to
In article <jpbe9b$haq$1...@dont-email.me>,
William Gill <nor...@domain.invalid> wrote:

[snip]

> I have a nested div and the container div is not extending it's height
> below the nested one. i.e.:
>
> <div id="container">
> <div id="nested">
> ...
> </div>
> </div>

[snip]

<style type="text/css">
#container {
overflow:hidden;
}
</style>

For old version of IE

<!--[if lte IE 7]>
<style type="text/css">
#container {
zoom:1;
}
</style>
<![endif]-->




--
BootNic Sun May 20, 2012 10:09 pm
Thirty-five is when you finally get your head together and your body starts
falling apart.
*Caryn Leschen*
signature.asc

dorayme

unread,
May 21, 2012, 12:23:29 AM5/21/12
to
In article <j498m9oa8i1$.1loodcrp...@40tude.net>,
tlvp <mPiOsUcB...@att.net> wrote:

> On Mon, 21 May 2012 09:40:22 +1000, dorayme wrote:
>
> > <http://netweaver.com.au/floatHouse/>
>
> On line 1 of <http://netweaver.com.au/floatHouse/page10.php>, wouldn't you
> really rather be saying "it behooves" than "it behoves"? Sorry, it's just
> that silly little trivia like that leap unaided to mine eyes, and bug me.

Does "colour" irritate you too? What about driving on the left or
right-hand-drive cars. What about yorkshire pudding or hot cocoa
before bed? How irritating are bowler hats and brollies to you? What
about London taxis, the sound of Big Ben? Does the sight of pennies
and shillings leap to yourne eyes and irritate thine self?

A behoover, btw, is a cordless vacuum cleaner that modern bison
hunters use to clean up after them.

--
dorayme

William Gill

unread,
May 21, 2012, 12:46:27 AM5/21/12
to
On 5/20/2012 7:40 PM, dorayme wrote:
>
> <http://netweaver.com.au/floatHouse/>
>

I have seen this before, and even have the link filed somewhere (but
forget where.)

Thank you.

tlvp

unread,
May 21, 2012, 1:55:54 AM5/21/12
to
On Mon, 21 May 2012 14:23:29 +1000, dorayme wrote:

> In article <j498m9oa8i1$.1loodcrp...@40tude.net>,
> tlvp <mPiOsUcB...@att.net> wrote:
>
>> On Mon, 21 May 2012 09:40:22 +1000, dorayme wrote:
>>
>>> <http://netweaver.com.au/floatHouse/>
>>
>> On line 1 of <http://netweaver.com.au/floatHouse/page10.php>, wouldn't you
>> really rather be saying "it behooves" than "it behoves"? Sorry, it's just
>> that silly little trivia like that leap unaided to mine eyes, and bug me.
>
> Does "colour" irritate you too?

Not at all.

> ... What about driving on the left or
> right-hand-drive cars.

Nope -- I've done that in those, no problem.

> ... What about yorkshire pudding or hot cocoa ...

All fine by me. (Now haggis takes a bit of getting used to, but that's
another story :-) .)

> ... How irritating are bowler hats and brollies to you? What
> about London taxis, the sound of Big Ben? Does the sight of pennies
> and shillings leap to yourne eyes and irritate thine self?

None of those bother me in the least. But seeing "behoves" intended as a
3rd person present tense verb form does. "Behooves" would be fine there;
"behove" as a past form wouldn't upset me, either. And I think I know why:
I was born too recently. For, numerous web sources assure me:

| behove [bɪˈhəʊv] US, behoove [bɪˈhuːv]. vb. (tr; impersonal) Archaic
| to be necessary or fitting -- "... for it behoves me to arrest you."

I guess it's just more archaic than I am capable of (with)standing, but not
archaic enough to bother you yet :-) . Ah, well, to each his/her/their own.
I'm sorry I ruffled your feathers on that score. And cheers, -- tlvp

> A behoover, btw, is a cordless vacuum cleaner that modern bison
> hunters use to clean up after them.

Ah, I hadn't realized that hunters now had modern bison to hunt :-) .
But we digress. Cheers, -- tlvp

dorayme

unread,
May 21, 2012, 6:30:03 AM5/21/12
to
In article <1jj2gpz3khe4n.bmtgcgpobkf8$.d...@40tude.net>,
tlvp <mPiOsUcB...@att.net> wrote:

> On Mon, 21 May 2012 14:23:29 +1000, dorayme wrote:
>
...
> > A behoover, btw, is a cordless vacuum cleaner that modern bison
> > hunters use to clean up after them.
>
> Ah, I hadn't realized that hunters now had modern bison to hunt
> But we digress.

What you are not realising is that bison hunters don't realise this.
Hunting and succeeding are like competing and winning, they have
distinct logical relations, the latter of the two pairs are not
implied by the former (respectively). And, btw, what a behoover sucks
up in practice is not necessarily the remains of bison or behemoths or
indeed any animals at all. But we digress.

--
dorayme

j

unread,
May 21, 2012, 7:51:27 AM5/21/12
to
On 5/20/2012 10:09 PM, BootNic wrote:
> In article<jpbe9b$haq$1...@dont-email.me>,
> William Gill<nor...@domain.invalid> wrote:
>
> [snip]
>
>> I have a nested div and the container div is not extending it's height
>> below the nested one. i.e.:
>>
>> <div id="container">
>> <div id="nested">
>> ...
>> </div>
>> </div>
>
> [snip]
>
> <style type="text/css">
> #container {
> overflow:hidden;
> }
> </style>
>
> For old version of IE


Didn't know they "fixed" that. Thanks.

Is there a more modern way of triggering "has layout"?

Jeff

BootNic

unread,
May 21, 2012, 1:11:47 PM5/21/12
to
In article <jpda6g$mec$1...@news.albasani.net>,
j <mun...@att.net> wrote:

> On 5/20/2012 10:09 PM, BootNic wrote:
>> In article<jpbe9b$haq$1...@dont-email.me>,
>> William Gill<nor...@domain.invalid> wrote:
>>
>> [snip]
>>
>>> I have a nested div and the container div is not extending it's
>>> height below the nested one. i.e.:
>>>
>>> <div id="container">
>>> <div id="nested">
>>> ...
>>> </div>
>>> </div>
>>
>> [snip]
>>
>> <style type="text/css">
>> #container {
>> overflow:hidden;
>> }
>> </style>
>>
>> For old version of IE
>>
>> <!--[if lte IE 7]>
>> <style type="text/css">
>> #container {
>> zoom:1;
>> }
>> </style>
>> <![endif]-->
>
> Didn't know they "fixed" that. Thanks.
>
> Is there a more modern way of triggering "has layout"?

I am not aware of any new methods to trigger haslayout.

If one simply wants to avoid using conditional comments, the zoom property
could be add to an existing rule and should be just as invalid and ignored as
using a vendor prefix.


--
BootNic Mon May 21, 2012 01:11 pm
A positive attitude may not solve all your problems, but it will annoy enough
people to make it worth the effort.
*Herm Albright*
signature.asc

Jonathan N. Little

unread,
May 21, 2012, 1:15:18 PM5/21/12
to
BootNic wrote:
> In article<jpda6g$mec$1...@news.albasani.net>,
> j<mun...@att.net> wrote:

>> Is there a more modern way of triggering "has layout"?
>
> I am not aware of any new methods to trigger haslayout.

So flipping the bird at your monitor won't do it, eh? ;-)

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

BootNic

unread,
May 21, 2012, 1:37:04 PM5/21/12
to
In article <jpdt74$4vf$2...@dont-email.me>,
"Jonathan N. Little" <lws...@gmail.com> wrote:

> BootNic wrote:
>> In article<jpda6g$mec$1...@news.albasani.net>,
>> j<mun...@att.net> wrote:
>
>>> Is there a more modern way of triggering "has layout"?
>>
>> I am not aware of any new methods to trigger haslayout.
>
> So flipping the bird at your monitor won't do it, eh? ;-)

Mayhaps a well trained monitor plugged in to a linux box, but never on a windows
box, and I would have serious misgivings for a mac box.

Of course this would all depend on ones ability to pluck a bird then teaching it
to walk backwards before flipping it at the monitor.


--
BootNic Mon May 21, 2012 01:37 pm
If you have money you can make the ghosts and devils turn your grind stone.
*Chinese Proverb*
signature.asc

Gus Richter

unread,
May 21, 2012, 2:38:36 PM5/21/12
to
On 5/21/2012 1:15 PM, Jonathan N. Little wrote:
> BootNic wrote:
>> In article<jpda6g$mec$1...@news.albasani.net>,
>> j<mun...@att.net> wrote:
>
>>> Is there a more modern way of triggering "has layout"?
>>
>> I am not aware of any new methods to trigger haslayout.
>
> So flipping the bird at your monitor won't do it, eh? ;-)

I believe that he didn't understand that you have a middle-finger
syndrome condition, huh?

Note my "American" interjection, although Canadian.
I note your "Canadian" interjection, although American.

--
Gus

tlvp

unread,
May 22, 2012, 2:39:57 AM5/22/12
to
On Mon, 21 May 2012 20:30:03 +1000, dorayme wrote:

> But we digress.

And I suppose it ... umm ... *behoves* (?) us not to :-) . Cheers, --
[nope]t[still]l[can't]v[take]p[it]
0 new messages