Title: Map not centered
Last modified: August 30, 2016

---

# Map not centered

 *  Resolved [ghostlyhollow](https://wordpress.org/support/users/ghostlyhollow/)
 * (@ghostlyhollow)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/map-not-centered/)
 * I am currently using the purchased version of the map plugin in a side widget
   on my site. Depending on the location in the post, the location is displayed.
   The only issue I am facing is that the location is not centered in the widget
   when opened. Users will not know what to do unless they scroll over to see the
   location. I have tried adjusting the setting to set the map center on the middle,
   left and right but no luck.
 * Do you have any ideas how I can get this to work? Or some form of css I can add
   to make the map display properly in the widget?
 * See here for an example: [http://trytoscare.me/gallows-hill-road-cranford/](http://trytoscare.me/gallows-hill-road-cranford/)
 * Thank you!
 * Brian
 * [https://wordpress.org/plugins/codepeople-post-map/](https://wordpress.org/plugins/codepeople-post-map/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/map-not-centered/#post-6397948)
 * Hi,
 * The issue is simple, and is caused by the design of the active theme on your 
   website.
 * The map has been inserted with the width to 100% to get a responsive design, 
   but its container, the div tag:
 * <div id=”nks-content-3″ class=”nks-content”>
 * defines its width at 100% too, but when the sidebar is visible, the area displayed
   is smaller than its width. The active point is centered on map, but the center
   of the map is not in the visible area of its container.
 * There are two possible solutions:
 * First option, enter a fixed number as the map’s width, coincident with the width
   of visible area.
 * Second option, set the width of the map’s container (the div tag), to coincide
   with the visible area.
 * Best regards.
 *  Thread Starter [ghostlyhollow](https://wordpress.org/support/users/ghostlyhollow/)
 * (@ghostlyhollow)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/map-not-centered/#post-6398036)
 * Amazing! Worked like a charm. I didnt realize that the 100% width was throwing
   off the map center due it being in the NKS content. I made it a fixed width and
   its working perfectly!
 * Thanks for all the help. This plugin has been by far the best map plugin in existence.
 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/map-not-centered/#post-6398037)
 * Thank you very much.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Map not centered’ is closed to new replies.

 * ![](https://ps.w.org/codepeople-post-map/assets/icon-256x256.jpg?rev=980165)
 * [CodePeople Post Map for Google Maps](https://wordpress.org/plugins/codepeople-post-map/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/codepeople-post-map/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/codepeople-post-map/)
 * [Active Topics](https://wordpress.org/support/plugin/codepeople-post-map/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/codepeople-post-map/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/codepeople-post-map/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [codepeople](https://wordpress.org/support/users/codepeople/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/map-not-centered/#post-6398037)
 * Status: resolved