WordPress.org

Ready to get started?Download WordPress

Forums

Pronamic Google Maps
[resolved] Using 100% as the width value (6 posts)

  1. AndrewMunro
    Member
    Posted 1 year ago #

    Great Plugin. I'm trying to add 100% as the width through the plugin function ('width' => 100%) but obviously it breaks. I've done it through CSS for the time being using !important but was just wondering if it is indeed possible through the function call. Thank you

    http://wordpress.org/extend/plugins/pronamic-google-maps/

  2. Remco Tolsma
    Member
    Plugin Author

    Posted 1 year ago #

    Unfortunately you can not pass an percentage width or height to the proanmic_google_maps() function.

  3. AndrewMunro
    Member
    Posted 1 year ago #

    Ok thanks for the clarification, I'll keep using my css override.

  4. kirkward
    Member
    Posted 1 year ago #

    @AndrewMunro - What is your CSS? Would you mind showing it?

  5. AndrewMunro
    Member
    Posted 1 year ago #

    Sure, I think this is what I used. This stretches the inner .canvas div to 100% width.

    .pgm .canvas {
        width: 100% !important;
    }
  6. kirkward
    Member
    Posted 1 year ago #

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.