Hi! I integrated a Openstreetmap to a website - here you can see it Link testpage <http://www.vba-team.at/index.php?page=kontakt-test> On this site you can see the problem. In the first tab everything is working fine, but in the two following tabs the map moves to the left and isn´t centered anymore. This is caused by a width of 100% - giving the div a fix width everything works fine (Here a link to the productive site: Link online site <http://www.vba-team.at/index.php?page=unser-team> )
The question now is, how to get the map centered in a div, which is 100% wide, as I want to get the whole site responsive - including the map. A good reference is this one here - Link <http://harrywood.co.uk/maps/examples/openlayers/simple-marker.html> - can I realize that within a div? Do you have an idea how this could work? Please ask me, if anything isn´t clear! Thank you very very much for your help! -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Center-Openstreetmap-in-div-with-Openlayers-tp5096802.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
