I have a div called target which is centred and displayed over a google map when you pan to a map marker, i have since added a menu to the left of the map which means that when the google map pans to a marker it is no longer the centre of the screen.
I need to move the div to the right but I can’t seem to move it.
#target {
position: fixed;
display: none;
width: 51px;
height: 51px;
top: 50%;
left: 50%;
margin: -40px 0 0 -26px;
background: url(../img/target.png) no-repeat center bottom;
z-index: 2;
}

You should be able to rectify your problem by playing a bit with the margin. Change the 4th value by adding a positive value so that it is greater than -26px. Such as:
margin: -40px 0 0 20px;.The 4th value in
marginspecifies the left margin value, which will shift your div to the right.Alternatively
You can wrap the map and target div in a separate div from the menu, but you must change the target
positionvalue to relative or absolute instead of fixed:With this alternate solution, the target and the map are aligned to the same div, almost as if they’re in their own window.