Click here to Skip to main content
16,005,734 members
Home / Discussions / Web Development
   

Web Development

 
QuestionHow to set a div position? Pin
shapper20-Mar-06 0:08
shapper20-Mar-06 0:08 
AnswerRe: How to set a div position? Pin
HimaBindu Vejella20-Mar-06 1:42
HimaBindu Vejella20-Mar-06 1:42 
GeneralRe: How to set a div position? Pin
shapper20-Mar-06 6:04
shapper20-Mar-06 6:04 
GeneralRe: How to set a div position? Pin
HimaBindu Vejella20-Mar-06 17:14
HimaBindu Vejella20-Mar-06 17:14 
GeneralRe: How to set a div position? Pin
sharma sanjeev20-Mar-06 21:14
sharma sanjeev20-Mar-06 21:14 
GeneralRe: How to set a div position? Pin
shapper24-Mar-06 3:27
shapper24-Mar-06 3:27 
QuestionJavascript functions to find mouse coordinates? Pin
KaKa'19-Mar-06 22:25
KaKa'19-Mar-06 22:25 
QuestionparentNode.style.left not working!! Pin
student_rhr19-Mar-06 10:31
student_rhr19-Mar-06 10:31 
Ok I am trying desprately to give an image abs position depending on its parent's left.

code looks like this:

<div align="center">
<div align="center">
<img src="/images/Logo.gif" id="Logo" />
<span id="Header"><img src="/images/HeaderImg.gif" id="Header" /></span>
</div>
</div>

In my CSS I have something like:
#Logo
{
position:absolute;
top:19px;
left:expression(this.parentNode.style.left + 20 + 'px');
z-index:12;
/*border:solid 2px teal;*/
}

but its not working. I want my image to be 20px away from the DIV that it is in. What am I doing wrong here? can someone please help me with this. THanks in advance.

P.S. I have also tried parentNode.offsetLet + 20 + 'px' but it didnt work either and when I do:
left:expression(alert(this.parentNode.offsetLeft));
I get [0] I dont get it Frown | :(
AnswerRe: parentNode.style.left not working!! Pin
Guffa19-Mar-06 11:14
Guffa19-Mar-06 11:14 
GeneralRe: parentNode.style.left not working!! Pin
student_rhr19-Mar-06 11:28
student_rhr19-Mar-06 11:28 
QuestionDesperate help! Pin
heskel19-Mar-06 3:06
heskel19-Mar-06 3:06 
AnswerRe: Desperate help! Pin
George L. Jackson19-Mar-06 4:50
George L. Jackson19-Mar-06 4:50 
QuestionPage Cache Pin
militiaware18-Mar-06 3:49
militiaware18-Mar-06 3:49 
QuestionGetting more space on left side of the web page Pin
Sujatha K17-Mar-06 19:23
Sujatha K17-Mar-06 19:23 
Questionserver performance??? Pin
Small Rat17-Mar-06 11:10
Small Rat17-Mar-06 11:10 
AnswerRe: server performance??? Pin
George L. Jackson17-Mar-06 12:09
George L. Jackson17-Mar-06 12:09 
Questionajax implementation Pin
sharma sanjeev17-Mar-06 2:09
sharma sanjeev17-Mar-06 2:09 
AnswerRe: ajax implementation Pin
Vasudevan Deepak Kumar17-Mar-06 3:36
Vasudevan Deepak Kumar17-Mar-06 3:36 
AnswerRe: Is their any Tag in html which solve the purpose of richtextfield Pin
Vasudevan Deepak Kumar17-Mar-06 3:38
Vasudevan Deepak Kumar17-Mar-06 3:38 
Question[Message Deleted] Pin
Mr.V.Stephen16-Mar-06 19:04
Mr.V.Stephen16-Mar-06 19:04 
AnswerRe: Please Check my Code!!!!newbie here!!! Pin
Guffa16-Mar-06 20:18
Guffa16-Mar-06 20:18 
GeneralRe: Please Check my Code!!!!newbie here!!! Pin
Mr.V.Stephen22-Mar-06 19:45
Mr.V.Stephen22-Mar-06 19:45 
QuestionQuery regarding conversion from Static HTML to an ASP without dynamism Pin
ShrikantPR16-Mar-06 17:51
ShrikantPR16-Mar-06 17:51 
QuestionHow to delete cookies in IE? Pin
mv_coffee16-Mar-06 17:18
mv_coffee16-Mar-06 17:18 
AnswerRe: How to delete cookies in IE? Pin
Gerald Schwab16-Mar-06 17:27
Gerald Schwab16-Mar-06 17:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.