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

JavaScript

Customizing Google Maps code challenge 4 of 5

Getting stuck on this one.

Task says: Cut the script tags from the bottom of the locations page and paste them in before the end of the body tag and after the "map" div

<!DOCTYPE html>
<html>
<head>
    <title>Map</title>
    <style type="text/css">
    html, body, #map {

    }
    </style>
</head>
<body>
<div id="map">
<style>
 html, body, #map{
    padding:0;
    margin:0;
    width:100%;
    height:100%;
} 
  </style>
</div>
  <script type="text/javascript" src="jquery.js"></script>
    <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAn8fk75K8kCdW6pQ4B7yoBHJNrUbleieY&sensor=false"></script>
    <script type="text/javascript" src="app.js"></script>
</body>
</html>

Yet it says "Oops! It looks like Task 3 is no longer passing"

I didn't break any divs and if I remove the scripts it passs just fine.

2 Answers

It appears as though you have included the style tag twice. The second style tag is also missing its type attribute. Take this code:

    padding:0;
    margin:0;
    width:100%;
    height:100%;

and place it within the braces of the style tag within the head tag. Then remove the style declaration inside the div.

Thanks that did the trick