What I have in css is:<div><br></div><div><div>.Zoom_in{</div><div>background-image:url(/OpenLayers/theme/default/img/drag-rectangle-on.png)!important;</div><div>width:22px !important;</div><div>height:22px !important;</div>
<div>}</div><div><br></div><div>But still adding .x-btn. doesn't work. </div><div><br></div><div>I link the .css with <link rel="stylesheet" type="text/css" href="IconCls.css"></link> and the file is at the same folder as html. The OpenLayers folder is there too. </div>
<div><br></div><div>The code of the control is </div><div><br></div><div><div>action = new GeoExt.Action({</div><div>control: new OpenLayers.Control.ZoomToMaxExtent(),</div><div> map: map,</div><div> //text: "max_extent",</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span><b>iconCls: "Zoom_extent",</b></div><div> tooltip: "zoom to max extent"</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>});</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>actions["Zoom_extent"] = action;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>toolbarItems.push(action);</div></div><div>
<br></div><div>When I've added the .x-btn. and it doesn't work I've tried to add at IconCls ".x-btn.Zomm_extent" but neither works.</div><br clear="all"><div><br></div>-- <br><a href="http://kikocanas.blogspot.com" target="_blank">http://kikocanas.blogspot.com</a><br>
</div>