Forum Discussion
CedricZimmermann
Nov 07, 2024Brass Contributor
CSS Properties being stripped from Teams Chat messages from Bot
Hi Team, We've noticed that certain CSS properties are no longer appearing in HTML messages when sent to Teams Chat. Previously, our bot styled messages using display and border properties, but now ...
Meghana-MSFT
Nov 28, 2024Bronze Contributor
Hi CedricZimmermann - Apologies for the delay in responding, we have raised a bug for this issue. We will keep you posted on the updates. Thank you.
CedricZimmermann
Feb 19, 2025Brass Contributor
Hey Meghana-MSFT, any news about the bug you raised for this issue?
- Meghana-MSFTFeb 20, 2025Bronze Contributor
Hi CedricZimmermann - Engineering team said that this behavior is by design. Teams Desktop/Web client has implemented new guidelines on what HTML elements and styling is allowed, which is why these properties are getting stripped out. Engineering team is working on updating the document to list out the allowed HTML elements.
- camilo_villaMay 29, 2025Copper Contributor
Hi, Meghana-MSFT​. I wanted to ask you about this. Can you please share where can I find this detailed documentation of the allowed HTML elements and styling in Teams for the Desktop client? Thanks!