Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML Prototyping with Foundation for Apps Finishing the Prototype Motion UI Library

Oyewole Abayomi
Oyewole Abayomi
1,483 Points

Guil, please how can i remove scroll bar beside the Google Map? mine is showing?

The scroll bar beside my Google Map is showing, please how can i remove it?

2 Answers

akak
akak
29,445 Points

In your index.html in the div for maps container add custom class (for example "map"):

 <div class="grid-block">
           <div class="grid-block show-for-medium medium-5 map">
            <iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d13213.303392438971!2d-118.35123519999999!3d34.11240684999999!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x80c2bee34e0c488f%3A0x8ee8f604f42b3f03!2sRunyon+Canyon+Park!5e0!3m2!1sen!2sus!4v1437067495757" width="100%" height="1000" frameborder="0" style="border:0"></iframe>
</div>

in the _custom.scss add for that class overflow hidden:

.map {
    overflow: hidden;
}

Actually, there is a type-o in the iframe code. change "height" from 1000 to 100%

no need for extra CSS