<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'><SPAN lang=NO-BOK>
Hi Bijoy.<BR>
<BR>
Don't know if I understood the question correctly but if its positioning the whole panzoombar, then it seems like you must override the old CSS attribute value of "left:" <U>in addition </U>to setting a new value of the CSS attribute "right:" to get the control over to the right side, e.g;<BR>
<BR>
.olControlPanZoomBar {right:100px; left:auto ! important;}<BR>
<BR>
<BR>
Regards<BR>Jan Rune Henriksen<BR>
Systemdesigner | Gecko AS<BR>
(very beta test site: <A href="http://www.geoport.no">www.geoport.no</A>)<BR></SPAN><BR><BR>> 4. Re: Set a Custom Position to the Controls (Bijoy)<BR>> <BR>> Message: 4<BR>> Date: Fri, 3 Oct 2008 06:15:43 -0700 (PDT)<BR>> From: Bijoy <bijoya@rediff.co.in><BR>> Subject: Re: [OpenLayers-Users] Set a Custom Position to the Controls<BR>> To: users@openlayers.org<BR>> Message-ID: <19797528.post@talk.nabble.com><BR>> Content-Type: text/plain; charset=us-ascii<BR>> <BR>> <BR>> Hi Robert,<BR>> I can set Custom Position to all Controls, except PanZoomBar. I wanted to<BR>> place the PanZoomBar towards right hand side of the map, instead of default<BR>> left-hand side position. Unfortunately, the style.css do not seem to have<BR>> that option for .olControlPanZoomBar. I tried to set my own, but still could<BR>> not place it. I also tried using,<BR>> map.addControl(new<BR>> OpenLayers.Control.PanZoomBar({'div':myZoomBarContainer}));<BR>> <BR>> Still, the myZoomBarContainer doesn't move using my own css, like<BR>> <BR>> .myZoomBarContainer { top: 20px; left: 600px; }<BR>> <BR>> Is there any other way? I am using OL 2.7<BR>> <BR>> <BIJOY><BR>> -- <BR>> View this message in context: http://www.nabble.com/Set-a-Custom-Position-to-the-Controls-tp19779867p19797528.html<BR>> Sent from the OpenLayers Users mailing list archive at Nabble.com.<BR>> <BR>> <BR>> <BR><br /><hr />Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! <a href='http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us' target='_new'>Try it!</a></body>
</html>