Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

97
Vistas
Microsoft Teams Notificaitons CSS Styling

Is there a way to style Teams Notifications?

Posting to a WebHook the following works:

                string _html = @"<table width='100%'>
                              <tr>
                                <th>Service</th>
                                <th>2 hours</th>
                                <th>4 hours</th>
                                <th>8 hours</th>
                                <th>24 hours</th>
                                <th>48 hours</th>
                              </tr>
                              <tr style='background-color: #1a1a1a;'>
                                <td>2343</td>
                                <td>132</td>
                                <td>43</td>
                                <td>12</td>
                                <td>132</td>
                                <td>532</td>
                              </tr>
                              </table>";
            
            var values = new Dictionary<string, string>{
                {"themeColor", "ffd11a"},
                { "title", "My Title" },
                { "textFormat", "markdown" },
                { "text",  _html }
            };

            var json = JsonSerializer.Serialize(values);
            var stringContent = new StringContent(json);
            var response = await client.PostAsync(webhookUrl, stringContent);

however when I try to add <style> tag it no longer works, and it seems that only 'inline' styles work. Is there a way to add CSS to Teams Notifications Webook?

over 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda