Search code examples
htmlkmlcss-tables

kml file properties overriden by CSS in webpage


I have a map which loads a kml file at some point. The kml contains trails with infowindows created in Google Earth using html. the problem is that when I load it on the website, its properties are overridden by the rest of the code for attributes like: background color, table sizes, borders etc.

  1. For example: I use a table to put map & legends together, but these table properties are inherited by the kml file, and the infowindows are formatted the way the rest of the page does..

What could I do to stop this from happening?


Solution

  • the infowindow proprerties table, td, etc inheritted the css in my main page. This happenned because I used inside the kml infowindows and for web page styling. The solution was very simple as shown here as well. I used different table classes and that solved the problem :D