473,406 Members | 2,549 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

How do I get the div to be the full height of the contents?

Hello,

Please look at http://www.kidsinaction.org.uk/fd2/x.html

In FF, it looks how I would like, but this required me to add an extra
div (id of "ferret") after the first ul in the page. I think this was so
that there would be something to clear, which made the div with id
"sectionlinks" be high enough. I'm sure that there is a better way to do
it than this!!

Even if there wasn't a better way, it doesn't work in IE (surprise) as
IE insists on giving the "ferret" div a height, even though I set it to
be zero.

Any suggestions on how to fix this? Ideally, I would like to have the
page looking like it does now in FF, but without needing the extra div.
I'm sure this can be done, I just don't know how ;-)

By the way, there are still a few issues with the page, such as font
sizes being too small in the margin, etc. Please don't shout at me for
this, I'm still experimenting with it!! Also, the blank space at the top
is for a header which I chopped out of the HTML to make it shorter.

TIA for any help.

--
Alan Silver
(anything added below this line is nothing to do with me)
May 3 '06 #1
10 1434
In article <Tb**************@nospamthankyou.spam>, Alan Silver
<al*********@nospam.thanx.invalid> writes
Hello,


In case it helps, I have added a second version of the page, this time
without the extra div, so you can see what is happening. Ideally, I
would like to get the height working without adding extra (unneeded)
content.

http://www.kidsinaction.org.uk/fd2/y.html

Ironically, this version looks almost how I want it in IE, but lousy in
FF!!

TIA

--
Alan Silver
(anything added below this line is nothing to do with me)
May 3 '06 #2
Alan Silver wrote:

Please look at http://www.kidsinaction.org.uk/fd2/x.html

In FF, it looks how I would like, but this required me to add an extra
div (id of "ferret") after the first ul in the page. I think this was so
that there would be something to clear, which made the div with id
"sectionlinks" be high enough. I'm sure that there is a better way to do
it than this!!

See <http://positioniseverything.net/easyclearing.html>.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
May 3 '06 #3

"Alan Silver" <al*********@nospam.thanx.invalid> wrote in message
news:Tb**************@nospamthankyou.spam...

Please look at http://www.kidsinaction.org.uk/fd2/x.html

Even if there wasn't a better way, it doesn't work in IE (surprise) as IE
insists on giving the "ferret" div a height, even though I set it to be
zero.

Any suggestions on how to fix this?


Put a comment inside the ferret div.

ie.

<div id="ferret"><!-- --></div>

don't know why it works, but I use it loads to do graphs on IE specific "web
apps"

HTH,

Martin
May 4 '06 #4
In article <7u********************@giganews.com>, Jim Moe
<jm***************@sohnen-moe.com> writes
See <http://positioniseverything.net/easyclearing.html>.


Thanks, looks like a good article. Just printing it out now.

--
Alan Silver
(anything added below this line is nothing to do with me)
May 4 '06 #5
In article <12*************@corp.supernews.com>, Martin Eyles
<ma**********@NOSPAMbytronic.com> writes

"Alan Silver" <al*********@nospam.thanx.invalid> wrote in message
news:Tb**************@nospamthankyou.spam...

Please look at http://www.kidsinaction.org.uk/fd2/x.html

Even if there wasn't a better way, it doesn't work in IE (surprise) as IE
insists on giving the "ferret" div a height, even though I set it to be
zero.

Any suggestions on how to fix this?


Put a comment inside the ferret div.

ie.

<div id="ferret"><!-- --></div>

don't know why it works, but I use it loads to do graphs on IE specific "web
apps"


Huh? Isn't that weird!! Mind you, I have come to expect the unexpected
from IE!!

Thanks a lot, it gives me a temporary fix whilst I read the article that
Jim Moe linked. Ideally, I would like to avoid having the ferret div
there as it's not part of the document content, and is only there to get
around this problem. If that article offers a way of doing it without
the superfluous div, then I will do that instead.

Thanks again.

--
Alan Silver
(anything added below this line is nothing to do with me)
May 4 '06 #6
Martin Eyles wrote:

Any suggestions on how to fix this?


Put a comment inside the ferret div.
<div id="ferret"><!-- --></div>

don't know why it works, but I use it loads to do graphs on IE specific "web
apps"

It does the same thing as
<http://positioniseverything.net/easyclearing.html>.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
May 4 '06 #7
Jim Moe wrote:
Martin Eyles wrote:
Any suggestions on how to fix this?

Put a comment inside the ferret div.
<div id="ferret"><!-- --></div>

don't know why it works, but I use it loads to do graphs on IE specific "web
apps"

It does the same thing as
<http://positioniseverything.net/easyclearing.html>.


And its interesting, with this method, how IE manages to mess up margin
collapse, or rather non collapse.

Louise
May 5 '06 #8
On Fri, 05 May 2006 02:57:06 GMT boclair <bo*****@bigpond.net.au> wrote:
| Jim Moe wrote:
|> Martin Eyles wrote:
|>>> Any suggestions on how to fix this?
|>> Put a comment inside the ferret div.
|>> <div id="ferret"><!-- --></div>
|>>
|>> don't know why it works, but I use it loads to do graphs on IE specific "web
|>> apps"
|>>
|> It does the same thing as
|> <http://positioniseverything.net/easyclearing.html>.
|>
|
| And its interesting, with this method, how IE manages to mess up margin
| collapse, or rather non collapse.

Why do they call it "collapse"? It seems to me from the description the
current word would be "overlap".

--
-----------------------------------------------------------------------------
| Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ |
| (first name) at ipal.net | http://phil.ipal.org/ http://ka9wgn.ham.org/ |
-----------------------------------------------------------------------------
May 5 '06 #9
boclair wrote:
Put a comment inside the ferret div.
<div id="ferret"><!-- --></div>
don't know why it works, but I use it loads to do graphs on IE specific "web
apps"

It does the same thing as
<http://positioniseverything.net/easyclearing.html>.


And its interesting, with this method, how IE manages to mess up margin
collapse, or rather non collapse.

MS has its priorities for its business model:
1. Marketing blitzes
2. FUD
3. Monopoly leverage
4. Legal attacks
5. Sales channel constriction
6. Technical excellence

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
May 5 '06 #10
Deciding to do something for the good of humanity, Jim Moe
<jm***************@sohnen-moe.com> declared in
comp.infosystems.www.authoring.stylesheets:
MS has its priorities for its business model: <snip> 6. Technical excellence


It's that high on the list?

--
Mark Parnell
My Usenet is improved; yours could be too:
http://blinkynet.net/comp/uip5.html
May 5 '06 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Terry | last post by:
OK folks, I know this has seemingly been discussed to death but honestly, I could not find posts related to the specific problem I'm submitting here. Feel free to flame me, as long as you provide a...
2
by: Larry R Harrison Jr | last post by:
I have pull-down menus in javascript and I have the code for opening a link in a new window. But I want it to open a full-sized window. I can't figure out the syntax. What I have so far: ...
0
by: gferris | last post by:
Hello, I am having an issue with a table that I cannot quite figure out. I have a two-column table with the left column comprising of 4 cells and the right column comprising of one cell with a...
6
by: gilbert.george | last post by:
Hi, I am setting the width of a textarea using the style.width to ensure the textarea is exactly the right width. I want to set the height/rows of the textarea depending on it's contents (so...
1
by: Jeff Bender | last post by:
http://people.virginia.edu/~kjl3d/testHeight.html Why doesn't the table with id shouldBeTall have a height that is the same as it's enclosing td? Firebug tells me that the table's height is 25...
6
by: Alfonso2968 | last post by:
Hello, If someone can help plz. I have searched everything and all I can find is how to drag and drop within a form from panel to panel. What I need to do is Drag an image from the desktop...
5
by: tader | last post by:
Hi again, so i got another question this time i need to get full web height but i just can't do it can anyone help me plz i try to use innerHeight, screen.availHeight and so on but thous function...
7
by: =?Utf-8?B?U2ltb24gVGFtbWFu?= | last post by:
I was trying to double buffer a control while drawing on CE devices. The code below is compiled under the compact framework but you can also run it on the desktop and it produces the same problem....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.