Center Google Map

This topic contains 5 reply and 2 voices, and was last updated by Tareq Hasan 10 years ago
Viewing 5 Posts - 1 through 5 (of 5 total)
Author Posts
March 24, 2014 at 1:24 pm 17137
Tareq Hasan Hi, how can I center the Google Map? http://bierbild.com/wuerzburger-hofbraeu-219/ Cheers, Denis
March 24, 2014 at 1:42 pm 17138
Tareq Hasan Tareq Hasan

Set margin: 10px auto;

March 24, 2014 at 1:51 pm 17145
Denis Denis

where do i put it?

can i set percent for width instead of pixel?

March 24, 2014 at 3:48 pm 17159
Tareq Hasan Tareq Hasan

How did you insert the map? May be override the CSS from your theme.

March 24, 2014 at 4:09 pm 17163
Denis Denis

I put this code in my theme:

<?php echo do_shortcode('[wpuf-meta name="bb_geoDaten" type="map" height="150" width="400" zoom="15"]'); ?>

when I use precent (like 50%) in width nothing happens.

where should I put margin: 10px auto;

March 24, 2014 at 6:47 pm 17181
Tareq Hasan Tareq Hasan

Add this css in your theme, should work:
[css].google-map {
margin: 10px auto !important;
width: 100% !important;
}[/css]

Viewing 5 Posts - 1 through 5 (of 5 total)