Home Forums Plugin Support WP User Frontend Pro Center Google Map

This topic is: resolved

Tagged: ,

This topic contains 5 replies, has 2 voices, and was last updated by  Tareq Hasan 5 years, 2 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #17137

    Denis
    Participant
    Post count: 165

    Hi,
    how can I center the Google Map?

    http://bierbild.com/wuerzburger-hofbraeu-219/

    Cheers,
    Denis

    #17138

    Tareq Hasan
    Keymaster
    Post count: 2831

    Set margin: 10px auto;

    #17145

    Denis
    Participant
    Post count: 165

    where do i put it?

    can i set percent for width instead of pixel?

    #17159

    Tareq Hasan
    Keymaster
    Post count: 2831

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

    #17163

    Denis
    Participant
    Post count: 165

    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;

    #17181

    Tareq Hasan
    Keymaster
    Post count: 2831

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

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Center Google Map’ is closed to new replies.