Hi, I've not used these expressions much, but is the use parseInt necessary?
I had the impression that offsetHeight returns an integer value of px. Am I missing something? Stuart On Tue, April 17, 2007 7:06 am, Quintin Stoltz wrote: > > I would assume that the reason it doesn't work, is because you are using > a method called "parseint". JavaScript is case-sensitive... The method > is actually "parseInt". But changing that makes IE hang, as someone > pointed out earlier... This I think is caused by the fact that you are > applying the expression on "all" divs within the "grid" div. It confuses > IE, and I actually managed to get it to not hang for a few seconds... > And what it's doing is, it keeps on resizing the divs... Resulting in an > infinate loop... Then IE hangs... > > You're gonna need to apply the expression in a different way I think. > I'm having a look at it now, will post new code here, unless someone > beats me to it. :O) > > Quintin > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > On Behalf Of Designer > Sent: 16 April 2007 06:43 PM > To: wsg@webstandardsgroup.org > Subject: [WSG] equal height columns > > trying again - this never arrived! > > -------- Original Message -------- > Subject: equal height columns > Date: Mon, 16 Apr 2007 12:42:04 +0100 > From: Designer <[EMAIL PROTECTED]> > Reply-To: [EMAIL PROTECTED] > To: wsg@webstandardsgroup.org > > Hi all, > > I need some javascript/DOM help in setting a CSS height. I've got a div > called grid and two columns inside that div (left and right). I have a > standards version which works fine using display : table and display : > table-cell, but for IE I want to put a conditional comment in which will > float the columns. In addition, I'd like to use the grid.offset.height > and set all divs to that height by defining #grid div. I've tried > putting a figure (in pixels) for the height of #grid div, and that > solves the problem, but I don't want to have to know the height, I want > the page to work it out for itself. I've tried this: > > > <!--[if IE]> > <style type="text/css"> > #grid div {height : expression( > parseint(grid.offset.height)+"px")} > .left{float : left; } > .right{float : right;} > </style> > <![endif]--> > > It doesn't work! Anyone know the answer? > > Many thanks. > > -- > Bob > > www.gwelanmor-internet.co.uk > > > > > > ******************************************************************* > List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm > Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm > Help: [EMAIL PROTECTED] > ******************************************************************* > > ********************************************************************** > ------ > NOTICE > ------ > This message (including attachments) contains privileged and > confidential information intended only for the person or entity to which > it is addressed. > > Any review, retransmission, dissemination, copy or other use of, or taking > of any action in reliance upon this information by persons or entities > other than the intended recipient, is prohibited. > > If you received this message in error, please notify the sender > immediately by e-mail, facsimile or telephone and thereafter delete the > material from any computer. > > Metropolitan Health Group, its subsidiaries or associates do not accept > liability for any personal views expressed in this message. > > ********************************************************************** > > > ******************************************************************* > List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm > Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm > Help: [EMAIL PROTECTED] > ******************************************************************* > -- Stuart Foulstone. http://www.bigeasyweb.co.uk BigEasy Web Design 69 Flockton Court Rockingham Street Sheffield S1 4EB Tel. 07751 413451 ******************************************************************* List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] *******************************************************************