1 Replies - 565 Views - Last Post: 15 May 2013 - 07:15 AM

#1 AIintern  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 53
  • Joined: 06-June 12

Centering problem

Posted 08 May 2013 - 09:07 PM

is there anyway to get this object to move to the center of the window?

imgObj.style.MozTransform = 'translate(200px) rotate(20deg)'
imgObj.style.MozTransitionDuration="5s"

thank you so much guys.
Is This A Good Question/Topic? 0
  • +

Replies To: Centering problem

#2 JMRKER  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 130
  • View blog
  • Posts: 838
  • Joined: 25-October 08

Re: Centering problem

Posted 15 May 2013 - 07:15 AM

Have you tried putting the object within <div> tags like...?
<div style="margin-left:auto;margin-right:auto">
 <img ..... id="imgObj" ..... >
</div>


Was This Post Helpful? 0
  • +
  • -

Page 1 of 1