Select to view content in your preferred language

Reposition Elements in Card

734
2
Jump to solution
01-30-2024 09:33 PM
AbdulRaufs
Occasional Contributor

I am working on this codepen. Urban Tree Map V2 (codepen.io)

A dynamic website showing top 5 species by count and loading the information in Card. Currently all the card elements are left aligned. I want the first two elements (image and Tree Species) left aligned while the count and the switch button to right.

AbdulRaufs_0-1706679035952.png

 

I have tested many element properties in developer mode of edge but unable to get desired results.

Please help.

Regards,

0 Kudos
1 Solution

Accepted Solutions
AbdulRaufs
Occasional Contributor

Hi, thank for your support. I was finding it difficult to implement list on my page with the structure I currently have. I tested some more, and I managed to get the desired result by adjust the width of label rather than trying to move chip and switch elements to right. 

AbdulRaufs_0-1706831151024.png

Hope the longest Species name fits in 300px :). 

Thanks and Regards,

 

View solution in original post

0 Kudos
2 Replies
KittyHurley
Esri Contributor

Its possible the List and List Item may be better suited for your use case - both components offer more configurability options via attributes and slots, and could provide usability and accessibility improvements.

For instance: https://codepen.io/geospatialem/pen/mdoxyyG 

0 Kudos
AbdulRaufs
Occasional Contributor

Hi, thank for your support. I was finding it difficult to implement list on my page with the structure I currently have. I tested some more, and I managed to get the desired result by adjust the width of label rather than trying to move chip and switch elements to right. 

AbdulRaufs_0-1706831151024.png

Hope the longest Species name fits in 300px :). 

Thanks and Regards,

 

0 Kudos