<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: CSS issues for legend and map button elements in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/css-issues-for-legend-and-map-button-elements/m-p/191071#M17625</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No worries, just did it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your speedy help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Sep 2014 17:35:48 GMT</pubDate>
    <dc:creator>MartinAshmore</dc:creator>
    <dc:date>2014-09-12T17:35:48Z</dc:date>
    <item>
      <title>CSS issues for legend and map button elements</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/css-issues-for-legend-and-map-button-elements/m-p/191067#M17621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two CSS issues on my page:&lt;/P&gt;&lt;P&gt;1. Positioning and styling the legend.&lt;/P&gt;&lt;P&gt;2. Styling the map controls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I initially developed the page by merging several samples using the border container layout. The page does what I want, but when I tried to change the layout, which I thought would be the simple part, I encountered the issues mentioned above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. The legend&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The legend div, which was previously in a border container, I would now like to position over the map. Despite a number of different attempts, including adding position information to the .esriLegendLayer and .esriLegendService to both an external and internal style sheet, I was able to alter the properties of the box but not move it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Styling map controls&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a smaller issue, but for some reason my map zoom controls and&amp;nbsp; geolocator box have lost the nice rounded edges, but I cant tell why. I am using the same style sheets and the same div names for the map and geolocator elements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="correctMapControl.JPG" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/7742_correctMapControl.JPG" style="height: auto;" /&gt; has gone to &lt;IMG alt="inCorrectMapControl.JPG" class="jive-image image-2" src="https://community.esri.com/legacyfs/online/7743_inCorrectMapControl.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone give me any pointers on how to reference the legend and style it as I require.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached my html page and the css.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any pointers would be a great help, as I'm quite new to both the javascript api and css.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 18:21:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/css-issues-for-legend-and-map-button-elements/m-p/191067#M17621</guid>
      <dc:creator>MartinAshmore</dc:creator>
      <dc:date>2014-09-04T18:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: CSS issues for legend and map button elements</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/css-issues-for-legend-and-map-button-elements/m-p/191068#M17622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I couldn't reproduce your first issue with the square corners on your search div, but could reproduce the legend issue.&amp;nbsp; I'm not sure if this is a bug or not, but it appears something is changing the legendDiv CSS position property from 'absolute' to 'relative':&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="screen.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/8015_screen.png" style="width: 620px; height: 318px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To work around this, you can add the legendDiv to a ContentPane and then apply your CSS to the ContentPane div.&amp;nbsp; Take a look at this &lt;A href="http://jsfiddle.net/3rsa4n9p/"&gt;JS Fiddle&lt;/A&gt; for an example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2014 12:21:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/css-issues-for-legend-and-map-button-elements/m-p/191068#M17622</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2014-09-05T12:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: CSS issues for legend and map button elements</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/css-issues-for-legend-and-map-button-elements/m-p/191069#M17623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jake,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That looks like exactly what I need to do. I am away for a few days, but I will give it a try when I get back to the office and let you know how I get on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for such a quick a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will double check my css against yours to try and work out why my map controls don't have the rounded edges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2014 13:23:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/css-issues-for-legend-and-map-button-elements/m-p/191069#M17623</guid>
      <dc:creator>MartinAshmore</dc:creator>
      <dc:date>2014-09-05T13:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: CSS issues for legend and map button elements</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/css-issues-for-legend-and-map-button-elements/m-p/191070#M17624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you get a chance, go ahead and mark this thread as 'answered' to help other users in the community.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 16:08:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/css-issues-for-legend-and-map-button-elements/m-p/191070#M17624</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2014-09-12T16:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: CSS issues for legend and map button elements</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/css-issues-for-legend-and-map-button-elements/m-p/191071#M17625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No worries, just did it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your speedy help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 17:35:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/css-issues-for-legend-and-map-button-elements/m-p/191071#M17625</guid>
      <dc:creator>MartinAshmore</dc:creator>
      <dc:date>2014-09-12T17:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: CSS issues for legend and map button elements</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/css-issues-for-legend-and-map-button-elements/m-p/191072#M17626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jake,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I stumbled across the reason that my map controls etc weren't rounded. I should of realised when your jsfiddle example worked fine. As my page is an internal, it was displaying using compatibility mode in IE.&lt;/P&gt;&lt;P&gt;&lt;A href="http://blog.jonschneider.com/2014/03/fix-css-border-radius-not-working-in.html" title="http://blog.jonschneider.com/2014/03/fix-css-border-radius-not-working-in.html"&gt;Jon Schneider's Tech Blog: Fix: CSS border-radius not working in Internet Explorer 11&lt;/A&gt; gave me the answer while I was trying to work out why my attempts at CSS3 were failing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 10:58:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/css-issues-for-legend-and-map-button-elements/m-p/191072#M17626</guid>
      <dc:creator>MartinAshmore</dc:creator>
      <dc:date>2014-10-10T10:58:32Z</dc:date>
    </item>
  </channel>
</rss>

