Centering a layer again.

B

Bennett

Hello,

-original post-
Can I center a layer over a centered picture on a centered
paragraph?


In a reply I was told by "MD WebsUnlimited.com" that I
could.
Would you please tell me how?

Thanks,
Bennett
 
M

MD WebsUnlimited.com

Hi Bennett,

In which browsers?

In IE

Each element must have an ID so that you can reference it. Using the ID you
can get the top and left position of the element as an offset to the element
, its width and height. From there you use simple math to compute the
centering and apply the offset to the element to be centered.
 
Top