Tagged: x
-
AuthorPosts
-
November 10, 2016 at 3:02 pm #1252277
mike-moonrayParticipantI’ve placed a Google Map in a marginless column without a column container and want it to fill both the width and height.
Based on some other posts here I’ve tried changing the padding bottom to both 0 and 100%. In both cases I can’t get the map to fill the height of the column unless the browser’s width is greater than 2380px.
Any suggestions on how to solve this?
November 10, 2016 at 10:00 pm #1252743
Paul RModeratorHi,
Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.
November 11, 2016 at 8:31 am #1253349
mike-moonrayParticipantThis reply has been marked as private.November 11, 2016 at 4:08 pm #1253797
FriechModeratorHi There,
You can add this under Custom > CSS in the Customizer.
@media (min-width: 768px) { #x-section-6 .x-container .x-1-2 .x-google-map .x-google-map-inner { height: 100vh; } }Hope it helps, Cheers!
November 14, 2016 at 3:02 pm #1256964
mike-moonrayParticipantThanks, unfortunately that made the map the full height of the screen. I needed it to match the height of it’s sibling column.
I ended up with the following css, and on the column containing the map I removed the padding on the column and set it’s style to position: relative;
@media (min-width: 768px) { .marginless-columns .x-1-2 .x-map { position: absolute; top: 0; bottom: 0; width: 100%; margin-bottom: 0; } .marginless-columns .x-1-2 .x-map .x-map-inner { height: 100% !important; } }This StackOverflow answer by King King by is what helped me out: http://stackoverflow.com/a/22712844/260152
November 14, 2016 at 8:31 pm #1257383
FriechModeratorGlad you sorted things out and thank you for sharing.
Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1252277 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
