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
Jonathan Grieve
Treehouse Moderator 91,254 PointsFinished "Build an Interactive Website" Course but can't get rid of the border.
Hi all,
Yay, I've completely finished the "Build an Interactive Website" course. But, inevitably as the course is about 2 years old there are one of 2 areas where the course shows its age.
In the last stage there's a point where we look at the border around the map area and take care of the scrolling so the responsiveness works.
And I've taken care of most of that, as you can see here. :-)
http://www.jonniegrieve.co.uk/lab/cupcakes/locations.html
So, I wanted to get some heads together and see how we might fix it, or if indeed there's something to fix.
One
The remove the scrolling, we've gotten round this by simply adding the scrolling attribute which is set to "no". And it does the trick just fine, but immediately I wonder if it;s in fact valid code. I don't think it meets modern browser standards.
Two
Seamless doesn't seem to remove the border, so I wonder if that too has been deprecated. I've kept it in for now but I've tried to get round this by applying styles
html, body, #map {
width: 100%;
height: 100%;
border: none;
}
But still no joy, there's still seems to be a border when looking at it in Chrome.
Any ideas or am I better to just leave it there? :)
1 Answer
Stefan Osorio
16,419 PointsYeah, the support for "seamless" seems to be non-optimal. However, your borderproblem can be solved: <iframe frameborder="0"> (removing the border was afaik never the point of seamless anyway)
Jonathan Grieve
Treehouse Moderator 91,254 PointsJonathan Grieve
Treehouse Moderator 91,254 PointsIt seems to be suggesting it as an effect of the Seamless attribute from that page. :-)