![]() |
changing CSS dynamically..
here is the code:
Code:
<head>I a getting the error that "left is undefined". |
Re: changing CSS dynamically..
Its marginLeft and not margin-left
|
Re: changing CSS dynamically..
Quote:
I am trying to setup the div in the middle of the screen independent of screen resolution. How can I ? |
Re: changing CSS dynamically..
It should.
Check this HTML Code:
<html> |
Re: changing CSS dynamically..
Quote:
|
Re: changing CSS dynamically..
Code:
window.onscroll=function(){How to fix this problem?? |
Re: changing CSS dynamically..
Try getting them into a variable and then add them as numbers
|
Re: changing CSS dynamically..
Quote:
Code:
<script type="text/javascript"> |
Re: changing CSS dynamically..
May be you need to see the scroll bar width.
Also IE compatibility is always an issue and let us know how it is not working in IE |
| All times are GMT +5.5. The time now is 08:03. |