[OpenLayers-Users] Re: Sidebar and width

m1k3ry4n mr at mry4n.net
Wed May 2 16:05:57 EDT 2012


You'll need to use CSS. It'd be something like:

map.html file:

<html>
<header> 
 include the stylesheet 
 include OL scripts here  
</header>
<body>
<div id="wrapper">
<div id="sidebar">  Sidebar HTML Goes Here  </div>
<div id="map"></div>
</div>  End wrapper div 
</body>
</html>


style.css file:

html, body { height: 100%; width: 100%}

#wrapper {height: 100%; width: 100%}

#sidebar {float: left; height: 100%; width: 150px;}

#map {float: right; height: 100%; width: 100%;}

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Sidebar-and-width-tp4938065p4947267.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list