You could use this little bit of code to find the position of one
element then do the work to place the other element using the new found
co-ords
function GetElementPostion(xElement){
var selectedPosX = 0;
var selectedPosY = 0;
var theElement = document.getElementById(xElement);
while(theElement != null){
selectedPosX += theElement.offsetLeft;
selectedPosY += theElement.offsetTop;
theElement = theElement.offsetParent;
}
return selectedPosX+"px" + "," + selectedPosY + "px";
}
Cheers,
Mark
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Katechis
Sent: Thursday, 13 January 2005 9:41 AM
To: [email protected]
Subject: RE: [WSG] Possible Min-height issue
Hmmm, I think that you could adapt a javascript/css fix that I found on
an
ALA article (http://www.alistapart.com/articles/footer) you might need
to
factor in padding, margins, borders, and heights of the different
elements
in your page.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Tom Livingston
Sent: Wednesday, January 12, 2005 4:49 PM
To: [email protected]
Subject: [WSG] Possible Min-height issue
Hello all,
Here's my page:
http://66.155.251.20/picotte.com/about/index.cfm
All is well except...
What I need is for the bottom of the 'grey bar with little squares'
image below the copy to stay flush with the bottom of the blue on the
right (below "Brokers Only") **when the content/copy is _not_ longer
than the right, blue side of the page**. When it is, it should push
down the page along with the footer, staying in place below the
copy/content.
Seems like a min-height thing, but can I actually do that to the
#content div in my current situation? I was attempting to implement the
min-height fix from mezzoblue, but it seemed to have no effect (at
least not the effect I was looking for ;-) ).
Any help would be greatly, and publicly, appreciated as well as incite
a lengthy "happy-dance" here in my office. Sorry, no video feed...
------------------------
Tom Livingston
Senior Multimedia Artist
Media Logic
mlinc.com
******************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.804 / Virus Database: 546 - Release Date: 11/30/2004
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.804 / Virus Database: 546 - Release Date: 11/30/2004
******************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************
----------------------------------------------------
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed. If
you have received this email in error please notify the system manager. Please
note that any views or opinions presented in this email are solely those of the
author and do not necessarily represent those of the company. The recipient
should check this email and any attachments for the presence of viruses. The
company accepts no liability for any damage caused by any virus transmitted by
this email.
----------------------------------------------------
******************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************