embeded google maps-no margins-Venture theme
-
I need help with writing a CSS to get rid of the side margins when I embed a google map on a couple of my pages. The theme I have is the venture theme
The blog I need help with is: (visible only to logged in users)
-
Hi there, are you talking about your Beverly Hills and Phoenix pages? If so, the map is taking up the entire content width area available (minus a bit of left and right padding so that the content isn’t right against the edges on smaller screens/windows. If those are the pages you are talking about, we can use the unique page id CSS classes set in the opening body HTML tag and widen just those two pages. This would be the CSS to widen them from 1170px to 1400px.
.page-id-39 .container, .page-id-38 .container { max-width: 1400px; width: 100%; } -
Oops, let’s change that code just a bit and use this instead.
.page-id-39 .site-content .container, .page-id-38 .site-content .container { max-width: 1400px; width: 100%; } -
-
Can we make the map stretch out to the complete edge? This website–> http://baliwasdental.com has it at the bottom as an example! Thank you!
-
Yes, change the max-width value to 100% like this.
.page-id-39 .site-content .container, .page-id-38 .site-content .container { max-width: 100%; width: 100%; } -
If you want to get rid of the left and right padding, then change the above to this
.page-id-39 .site-content .container, .page-id-38 .site-content .container { max-width: 100%; width: 100%; padding-left: 0; padding-right: 0; } -
awesome, you’re a life saver! I want to do that to my instagram widget too…..any help would be appreciated!! thank you!
-
- The topic ‘embeded google maps-no margins-Venture theme’ is closed to new replies.