How to Center an Embedded Google Map

By Spencer Sandoval

Google Maps gives users the ability to not only find any location around the world online, but to share that location with anyone else on the Internet. This can be done in a number of ways, the most convenient of which is to show the map on your Web page. Google gives out the embed code for its maps on the Google Maps homepage. After you've embedded the Google Maps code into your HTML code, you can customize its position so that the map sits in the center of your Web page.

Step 1

Search your HTML document for your embedded Google Maps code. It should start with "

Step 2

Use your mouse to place your cursor just above the "" (no quotes).

Step 3

Find the end of your embedded Google Maps code, which is marked with a "" tag.

Step 4

Use your mouse to place your cursor just below the "" HTML tag and write "

" (no quotes). Save and close the HTML file. Your embedded Google map will now be centered on your Web page.