In Metronic 8 you can use KTSticky component to achieve that. If you need any further help with this please let us know.
I know I've seen this, but I need to set the width to be the same as the width of the container. How can I do it?
or same as the card width
Can you try to use the setting to set the width of the content: