javascript - How to clear css rules inside specific div for external js embedded content. I mean make it behave as there was no previous css rules present? -


i want embed zumi.pl map on website. map loaded via js div specific id , dependent on external css. css formating div inside div#content interferes embedded map screwing up. tried to enclose in div contextual css reset it's still displays wrong. way make display (almost) uncheck css rules div in firefox inspector can't figure out how achieve same effect on page. clarity sample copy&paste code generator:

    <div id="zumimap" class="zumi_creator" style="width:300px; height:300px;"></div> <script src="http://api.zumi.pl/maps/api" type="text/javascript" ></script><script type="text/javascript">(function(){var marker,map=new zumi.maps.map("zumimap", {"apikey": "e48ef8e55a0b3beae0434628ae0a1eea"});map.afterload(function() {document.getelementbyid("zumimap").classname += " zumi_creator";map.addmarker({lat: 52.214679,lng: 21.021101},{letter: "a", type: "main"});map.setcenter({lng: 21.021101,lat: 52.214679}, 7);});})();</script> 

and here css that's blame:

#content div {     display: inline;     float: left;     margin: 0px 0.833333%;     padding-left: 10px; } 

how isolate html fragment behaves there no previous css rules present? without using iframe.

did try this? #content #zumimap div have higher specificity #content div selector, can reset problem styles.

#content #zumimap div {     display: block;     float: none;     margin: 0;     padding-left: 0; } 

Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -