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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top