-1

I was working on google map javascript v3 api and found out the max-width:100% that is being called is messing the controls in the google map. Reference this post.

I wonder why does CSS resets have img {max-width: 100%;} and what happen if I just delete it.

Community
  • 1
  • 1
Chris Yeung
  • 2,613
  • 6
  • 34
  • 57

2 Answers2

1

there is no need to remove img { max-width: 100%; } you just give an id in your map div and add

map-id img{max-width:none;}

Community
  • 1
  • 1
Super User
  • 9,448
  • 3
  • 31
  • 47
-1

If you remove img { max-width: 100%; } it will no longer make your images responsive. And since you're using google maps I'd assume that the maps would no longer fit within the user's screen.

Chrillewoodz
  • 27,055
  • 21
  • 92
  • 175