Center map using GMap Listing Page Widget

This topic contains 7 replies, has 3 voices, and was last updated by  nasc 9 years ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #38512

    nasc
    Expired Member
    Post count: 235

    I would like to use the Gmap listing page widget but I need it to be centered horizontally on the page, it comes out being left justified for me.

    I removed the map from our listing page for now.

    I may or may not be using it with a sidebar if that makes a difference.

    Thanks,

    #38513

    Simone
    Expired Member
    Post count: 3515

    Hello, set it to be width 100% and you should be fine.

    #38517

    nasc
    Expired Member
    Post count: 235

    Sorry, I forgot to add the fact that I want it to be only half size horizontally, but centered.

    #38521

    Simone
    Expired Member
    Post count: 3515

    you can try to set a width in pixel (in the widget ) and then add the following in your style.css

    
    
    div#sticky_map_geodir_map_v3_listing_map_9.top_banner_section.geodir_map_container.geodir-map-listing-page.geodir-map-full {
    
    margin-left:auto;
    margin-right:auto;
    }
    #38524

    nasc
    Expired Member
    Post count: 235

    Thanks,

    That worked on my search page,

    But the map is still left justified when I show any of my custom post types from my top menu.

    I added both maps after I added the css code.

    #38568

    Simone
    Expired Member
    Post count: 3515

    Go with

    
    
    div#sticky_map_geodir_map_v3_listing_map_10.top_banner_section.geodir_map_container.geodir-map-listing-page.geodir-map-full {
    
    margin-left:auto;
    margin-right:auto;
    } 
    #38605

    Paolo
    Site Admin
    Post count: 31206
    This reply has been marked as private.
    #38649

    nasc
    Expired Member
    Post count: 235

    Thanks, that did the trick,

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket