E
Eeediot
Hello, Folks.
I am trying to figure out how to get a DIV layer to appear in the middle of
a web page. I would like it to be a bit dynamic so that it would
recalculate its position if the browser window is resized.
I am thinking of something like:
style = "TOP: (window.innerHeight - this.height)/2; LEFT:
(window.innerWidth - this.width)/2;"
What entries or variables would I use inside of style = " ... "?
Is this even possible?
TIA
I am trying to figure out how to get a DIV layer to appear in the middle of
a web page. I would like it to be a bit dynamic so that it would
recalculate its position if the browser window is resized.
I am thinking of something like:
style = "TOP: (window.innerHeight - this.height)/2; LEFT:
(window.innerWidth - this.width)/2;"
What entries or variables would I use inside of style = " ... "?
Is this even possible?
TIA