Maybe I can set an element inside that table cell to use a relative position.



On 4/10/06, SPENDLOVE, Matt, GBM < [EMAIL PROTECTED]> wrote:
Does it matter if you set the dimensions with CSS  ?
 
Matt
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Gregory Hill
Sent: 10 April 2006 18:51
To: rails-spinoffs@lists.rubyonrails.org
Subject: RE: [Rails-spinoffs] Element.getDimensions() support for IE?

I'm not sure if this applies to your situation or not, but IE will not return dimensions for elements with position = absolute.  In fact, I'm not sure it even does it for position = relative.  Or maybe that's only in certain circumstances.

 

Greg

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Jim Geurts
Sent: Monday, April 10, 2006 11:47 AM
To: rails-spinoffs@lists.rubyonrails.org
Subject: [Rails-spinoffs] Element.getDimensions() support for IE?

 

Hey all,

I'm not sure if IE can support this, but I'm trying to get the dimensions of an element that has percentages for height/width.  In the example code below, I'm trying to get the dimensions for the 'MyCell' element.  Firefox supports Element.getDimensions('MyCell'), but IE returns 0 for the height & width returned by that call.

Thanks

Jim


___________________________________________

<table cellspacing="0" cellpadding="0" border="0" style="height:100%;width:100%">
    <tr>
        <td>
some text
        </td>
    </tr>
    <tr>
        <td>&nbsp;</td>
    </tr>
    <tr height="100%">
        <td width="100%" id="MyCell" valign="top">
some other stuff
        </td>
    </tr>
</table>

***********************************************************************************
The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB.
Authorized and regulated by the Financial Services Authority

This e-mail message is confidential and for use by the
addressee only. If the message is received by anyone other
than the addressee, please return the message to the sender
by replying to it and then delete the message from your
computer. Internet e-mails are not necessarily secure. The
Royal Bank of Scotland plc does not accept responsibility for
changes made to this message after it was sent.

Whilst all reasonable care has been taken to avoid the
transmission of viruses, it is the responsibility of the recipient to
ensure that the onward transmission, opening or use of this
message and any attachments will not adversely affect its
systems or data. No responsibility is accepted by The Royal
Bank of Scotland plc in this regard and the recipient should carry
out such virus and other checks as it considers appropriate.
Visit our websites at:
http://www.rbos.com http://www.rbsmarkets.com
***********************************************************************************


_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs



_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to