<?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 Custom CSS - Clip-path and object-fit in ArcGIS Hub Questions</title>
    <link>https://community.esri.com/t5/arcgis-hub-questions/custom-css-clip-path-and-object-fit/m-p/1635412#M6691</link>
    <description>&lt;P&gt;I am creating some custom designs on existing elements for my front hub page and for one of those I want to create a diagonal line through an element to separate text from image like the black/white slash here:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sarraesmith_1-1753278278234.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/136996iF4587E15A95F0144/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sarraesmith_1-1753278278234.jpeg" alt="sarraesmith_1-1753278278234.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Typically this is done using clip path, but only the deprecated clip function shows up blue under my custom &amp;lt;style&amp;gt; tag. Unfortunately clip only really supports rectangular clipping, unlike clip-path.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Also, I am trying to change my images so that they are contained by the card container using object-fit: cover, which also doesn't seem to work.&lt;/P&gt;&lt;P&gt;Does anyone know the syntax for either of these things? All of my elements are pure CSS.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Reference pages&lt;/STRONG&gt;&lt;BR /&gt;Clip-path:&amp;nbsp;&lt;A href="https://www.w3schools.com/cssref/css3_pr_clip-path.php" target="_blank"&gt;https://www.w3schools.com/cssref/css3_pr_clip-path.php&lt;/A&gt;&lt;BR /&gt;Object-fit:&amp;nbsp;&lt;A href="https://www.w3schools.com/css/css3_object-fit.asp" target="_blank"&gt;https://www.w3schools.com/css/css3_object-fit.asp&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Jul 2025 13:47:55 GMT</pubDate>
    <dc:creator>sarraesmith</dc:creator>
    <dc:date>2025-07-23T13:47:55Z</dc:date>
    <item>
      <title>Custom CSS - Clip-path and object-fit</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/custom-css-clip-path-and-object-fit/m-p/1635412#M6691</link>
      <description>&lt;P&gt;I am creating some custom designs on existing elements for my front hub page and for one of those I want to create a diagonal line through an element to separate text from image like the black/white slash here:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sarraesmith_1-1753278278234.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/136996iF4587E15A95F0144/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sarraesmith_1-1753278278234.jpeg" alt="sarraesmith_1-1753278278234.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Typically this is done using clip path, but only the deprecated clip function shows up blue under my custom &amp;lt;style&amp;gt; tag. Unfortunately clip only really supports rectangular clipping, unlike clip-path.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Also, I am trying to change my images so that they are contained by the card container using object-fit: cover, which also doesn't seem to work.&lt;/P&gt;&lt;P&gt;Does anyone know the syntax for either of these things? All of my elements are pure CSS.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Reference pages&lt;/STRONG&gt;&lt;BR /&gt;Clip-path:&amp;nbsp;&lt;A href="https://www.w3schools.com/cssref/css3_pr_clip-path.php" target="_blank"&gt;https://www.w3schools.com/cssref/css3_pr_clip-path.php&lt;/A&gt;&lt;BR /&gt;Object-fit:&amp;nbsp;&lt;A href="https://www.w3schools.com/css/css3_object-fit.asp" target="_blank"&gt;https://www.w3schools.com/css/css3_object-fit.asp&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2025 13:47:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/custom-css-clip-path-and-object-fit/m-p/1635412#M6691</guid>
      <dc:creator>sarraesmith</dc:creator>
      <dc:date>2025-07-23T13:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Custom CSS - Clip-path and object-fit</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/custom-css-clip-path-and-object-fit/m-p/1636540#M6697</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/643003"&gt;@sarraesmith&lt;/a&gt;&amp;nbsp;–&lt;/P&gt;&lt;P&gt;Gotta say, the layout in the screenshot looks great. Are you saying that clip-path hasn't been working for you? I took the example featuring the hot air balloon on the &lt;A href="https://developer.mozilla.org/en-US/docs/Web/CSS/clip-path" target="_self"&gt;clip-path page of Mozilla Developer site&lt;/A&gt; ... and I was able to get it functioning in a Hub page.&lt;/P&gt;&lt;P&gt;Do you have a Codepen or some code that you could share?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jul 2025 18:58:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/custom-css-clip-path-and-object-fit/m-p/1636540#M6697</guid>
      <dc:creator>JustinPrather</dc:creator>
      <dc:date>2025-07-25T18:58:06Z</dc:date>
    </item>
  </channel>
</rss>

