---
title: "jQuery Rotate Image Not On Center"  
description: "jQuery Rotate Image Not On Center"  
author: "Takeshi Okada"  
published: 2013-05-03  
updated: 2013-05-03  
canonical: https://www.mindstick.com/forum/802/jquery-rotate-image-not-on-center  
category: "jquery"  
tags: ["jquery"]  
reading_time: 1 minute  

---

# jQuery Rotate Image Not On Center

Hi Mindstickians!\
I'm having a [bit](https://www.mindstick.com/forum/33411/how-we-tell-programmatically-if-i-m-running-in-64-bit-jvm-or-32-bit-jvm) of an issue [trying](https://answers.mindstick.com/qa/93698/6-mistakes-couples-are-trying-to-save-money) to [rotate](https://answers.mindstick.com/qa/34548/what-is-rotate-indefinitely) an [image](https://www.mindstick.com/articles/23551/an-investigate-distinctive-seafood-restaurant-for-your-image-stamp-character) on a particular point.\
I've been using http://jsfiddle.net/YKj5D/ as an example; which works perfectly when wanting to rotate an image from its center point.\
However, using the example above, i wanted to rotate the image around the letter G, how could this be achieved?\
Current [code](https://yourviews.mindstick.com/view/85458/alan-turing-the-mastermind-behind-cracking-the-enigma-code-during-world-war-ii):\
[function](https://www.mindstick.com/articles/13001/multi-statement-table-valued-user-defined-function-in-sql-server) rotateGearStick(){[var](https://www.mindstick.com/forum/33920/what-is-different-var-and-dynamic-types-in-c-sharp) rotation = function (){ $("#gear-stick").rotate({ angle:0, animateTo:110, }); } rotation();}Where gear-stick is the ID of my image.\
I'm attempting to create an rev [counter](https://www.mindstick.com/interview/33859/how-to-create-pixel-counter-in-javascipt) dial.\
Thanks in [advance](https://www.mindstick.com/blog/33258/jee-mains-and-jee-advance-exams)! \

## Replies

### Reply by AVADHESH PATEL

Hi Takeshi!\
You can try as following\
#image{ margin:100px; padding-left:170px; /* <----- */}


---

Original Source: https://www.mindstick.com/forum/802/jquery-rotate-image-not-on-center

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
