<?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: Hover Effect of Image in Text Card in ArcGIS Hub Questions</title>
    <link>https://community.esri.com/t5/arcgis-hub-questions/hover-effect-of-image-in-text-card/m-p/1085688#M4686</link>
    <description>&lt;P&gt;Yes! Thank you so much Klara! That was one of the finishing touches I needed before go-live for our Hub site.&lt;/P&gt;</description>
    <pubDate>Wed, 04 Aug 2021 13:55:14 GMT</pubDate>
    <dc:creator>KaraUtter</dc:creator>
    <dc:date>2021-08-04T13:55:14Z</dc:date>
    <item>
      <title>Hover Effect of Image in Text Card</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/hover-effect-of-image-in-text-card/m-p/1085502#M4678</link>
      <description>&lt;P&gt;Trying to figure out how to create a hover effect for my text card that matches exactly the category cards in the same row. I created a text card that mirrors the look of the category card for my Noxious Weeds and Pests category because it needed to link to another hub site - at first glance they look the same but the interaction is different relative to the hover effects. Please go to&amp;nbsp;&lt;A href="https://gis-portal-valleycounty.hub.arcgis.com/" target="_blank"&gt;Valley County GIS Portal (arcgis.com)&lt;/A&gt;&amp;nbsp;and scroll to the bottom categories row to view what I'm referring to.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been through many reference sites on bootstrap, html, css and keep finding things that might work but I can't get them to work. I'm a beginner in the ways of html and css but can hack a few things her and there.&lt;/P&gt;&lt;P&gt;Does anyone have any advice?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 20:56:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/hover-effect-of-image-in-text-card/m-p/1085502#M4678</guid>
      <dc:creator>KaraUtter</dc:creator>
      <dc:date>2021-08-03T20:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Hover Effect of Image in Text Card</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/hover-effect-of-image-in-text-card/m-p/1085515#M4679</link>
      <description>&lt;P&gt;&lt;FONT face="helvetica"&gt;Hi Kara,&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="helvetica"&gt;The hover state we're using on the category cards is &lt;FONT face="courier new,courier"&gt;outline:&amp;nbsp;&lt;/FONT&gt;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;#0079c1 solid 2px&lt;/FONT&gt;&amp;nbsp;and&amp;nbsp;&lt;FONT face="courier new,courier"&gt;opacity: 0.6;&lt;/FONT&gt;&amp;nbsp;on the image. But what you'll need to do is make sure that your link wraps around both the image and the text in order to get that block outline effect. At the moment, you have two separate links and that's why you aren't getting the unified hover look.&lt;BR /&gt;&lt;BR /&gt;The structure that you are looking for with your HTML will be something more like this:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;a href="https://noxious-weed-valleycounty.hub.arcgis.com/" class="copycat-category-card"&amp;gt;
&amp;lt;img src="https://valleycounty.maps.arcgis.com/sharing/rest/content/items/1ec5c39b460847bfbe16855da64bac3b/data" alt="Noxious Weeds and Pests" style="width: 120px; height: 120px; margin-top: 10px;"&amp;gt;
&amp;lt;div&amp;gt;
Noxious Weeds and Pests
&amp;lt;/div&amp;gt;
&amp;lt;/a&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="helvetica"&gt;&lt;SPAN&gt;Then in an embed style tag above the HTML, you'll want&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="css"&gt;&amp;lt;style&amp;gt;
a.copycat-category-card {
  display: block;
  width: 150px;
  text-align: center;
}
a.copycat-category-card:hover{
  outline: #418499 solid 2px;
  text-decoration: none;
}
a.copycat-category-card:hover img {
  opacity: 0.6;
}
a.copycat-category-card div {
  color: #003580;
  margin-top: 20px;
}
&amp;lt;/style&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="helvetica"&gt;&lt;SPAN&gt;&lt;BR /&gt;You may also wish you use spacer cards on either side of your Text Card rather than try to deal with the Bootstrap 3 grid classes. I've included a grid class on the HTML above (see col-sm-2). But you can either strip that off and use spacers, or add empty divs before and after your card set to col-sm-4. (You want the sum total of the cards in your row to equal 12 and you can do that with the layout editor and let it take care of sizing for you or you can do it with code in a single Text Card that the layout editor will set to 12, but then you are essentially subdividing inside of it.)&lt;BR /&gt;&lt;BR /&gt;Edit: Updated code snippets.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 13:12:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/hover-effect-of-image-in-text-card/m-p/1085515#M4679</guid>
      <dc:creator>KlaraSchmitt</dc:creator>
      <dc:date>2021-08-04T13:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: Hover Effect of Image in Text Card</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/hover-effect-of-image-in-text-card/m-p/1085538#M4680</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/129000"&gt;@KlaraSchmitt&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;&lt;P&gt;I had seen a few of your examples of html/css in hub while I was trying to figure this out. Thank you for responding!&lt;/P&gt;&lt;P&gt;I tried what you said above and still didn't get the hover effect. Should my HTML builder look like this?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KaraUtter_0-1628029405371.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/20079iD80D07FB477D8045/image-size/large?v=v2&amp;amp;px=999" role="button" title="KaraUtter_0-1628029405371.png" alt="KaraUtter_0-1628029405371.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 22:23:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/hover-effect-of-image-in-text-card/m-p/1085538#M4680</guid>
      <dc:creator>KaraUtter</dc:creator>
      <dc:date>2021-08-03T22:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: Hover Effect of Image in Text Card</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/hover-effect-of-image-in-text-card/m-p/1085667#M4685</link>
      <description>&lt;P&gt;&lt;FONT face="helvetica"&gt;Hi Kara,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="helvetica"&gt;My apologies, there was an error in my code. You can see that I put the &lt;FONT face="courier new,courier"&gt;.copycat-category-card&lt;/FONT&gt; class on the actual link element, but then in the style tags, I told you&lt;FONT face="courier new,courier"&gt; .copycat-category-card a&lt;/FONT&gt;&amp;nbsp;to target it and there's no way that would work because &lt;FONT face="courier new,courier"&gt;&amp;lt;a&amp;gt;&lt;/FONT&gt; would have to be a nested element of &lt;FONT face="courier new,courier"&gt;.copycat-category-card&lt;/FONT&gt;. It should have been &lt;FONT face="courier new,courier"&gt;a.copycat-category-card&lt;/FONT&gt; which means find the &lt;FONT face="courier new,courier"&gt;&amp;lt;a&amp;gt;&lt;/FONT&gt;&amp;nbsp;that has the class of &lt;FONT face="courier new,courier"&gt;.copycat-category-card&lt;/FONT&gt; attached and then apply the hover as a pseudo&amp;nbsp;class. I've updated the code snippets above.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 13:18:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/hover-effect-of-image-in-text-card/m-p/1085667#M4685</guid>
      <dc:creator>KlaraSchmitt</dc:creator>
      <dc:date>2021-08-04T13:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: Hover Effect of Image in Text Card</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/hover-effect-of-image-in-text-card/m-p/1085688#M4686</link>
      <description>&lt;P&gt;Yes! Thank you so much Klara! That was one of the finishing touches I needed before go-live for our Hub site.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 13:55:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/hover-effect-of-image-in-text-card/m-p/1085688#M4686</guid>
      <dc:creator>KaraUtter</dc:creator>
      <dc:date>2021-08-04T13:55:14Z</dc:date>
    </item>
  </channel>
</rss>

