Problem to link the map

Asked

Viewed 28 times

0

I’m new here and new to programming, so I’m sorry if the question is too silly. I’m starting the project on a site and it turns out that when I link the site with the maps, there is a white "screen" right on top of the map, so that the map does not appear. I’ve tried everything, clumsy. Can anyone explain?

section.sessao4 {
  background-color: #472563;
  padding: 100px 0;
}

.form {
  float: left;
  width: 50%;
  color: white;
  padding-left: 10px;
}

.form h2 {
  font-size: 23px;
  font-weight: 300;
}

.form p {
  font-size: 15px;
  font-weight: 300;
  max-width: 400px;
  padding-right: 10px;
}

.form form {
  margin-top: 15px;
}

.form form input[type=text] {
  width: 90%;
  max-width: 480px;
  margin-top: 8px;
  height: 58px;
  padding-left: 8px;
  line-height: 58px;
  border: 1px solid rgb(200, 200, 200);
}

.form form input[type=submit] {
  border: 0;
  background-color: #FF703D;
  width: 165px;
  height: 44px;
  font-size: 13px;
  color: white;
  cursor: pointer;
  margin-top: 15px;
  border-radius: 30px;
}

.form form textarea {
  width: 90%;
  margin-top: 8px;
  max-width: 480px;
  padding: 15px;
  border: 1px solid rgb(200, 200, 200);
  height: 160px;
}

.map-wraper {
  float: left;
  width: 50%;
  padding: 0 10px;
  color: white;
}

.map-wraper h2 {
  font-size: 23px;
  font-weight: 300;
}

.map-wraper3 {
  margin-top: 10px;
  width: 100%;
  max-width: 480px;
  position: relative;
}

.map-wraper2 {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  padding-top: 100%;
}

.map {
  left: 0;
  top: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  background: white;
  border: 5px solid rgb(200, 200, 200);
}
<div class="map-wraper">
  <h2>Faça uma visita</h2>
  <div class="map-wraper3">
    <div class="map-wraper2">
      <iframe width="520" height="400" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" id="gmap_canvas" src="https://maps.google.com/maps?width=520&amp;height=400&amp;hl=en&amp;q=Avenida%20Marcolino%20Martins%20Cabral%20Tubarao+(Meu%20mapa)&amp;t=&amp;z=12&amp;ie=UTF8&amp;iwloc=B&amp;output=embed"
        style="color:black"></iframe> <a href='http://maps-generator.com/pt'>maps-generator.com</a>
      <div id="map" class="map"></div>
      <!--map-->
    </div>
    <!--map-wraper2-->
  </div>
  <!--map-wraper3-->
</div>
<!--map-wraper-->

  • The problem seems to be the <div id="map" class="map"></div>, if you look at the css you will also notice that it is with position: absolute. Is there a reason for that div be there ?

  • So I saw it on a course, but even though it was the same, mine was different. I must have made a mistake somewhere.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.