Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

136
Visualizações
Bootstrap success icon showing white on white instead of green?

I copied the code directly from the bootstrap docs (below) but for some reason my "success" badge is showing as white text on a white background? I can highlight the text and it's "there" but it's not showing like it should.

Code from bootstrap:

<span class="badge badge-success">Success</span>

Code from my page:

<h5 class="card-title mb-2"><%= title %> <span class="badge badge-success">Success</span>
    </h5>

Any idea why it's not working properly?

about 4 years ago · Santiago Gelvez
1 Respostas
Responde à pergunta

0

The correct thing is badge bg-success if you use bootstrap 5

<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"/>

<h5 class="card-title mb-2">
<%= title %>
<span class="badge bg-success">Success</span>
 </h5>
    
<span class="badge bg-success">Success</span>

Most likely, you are using bootstrap 5 in your project and that is why it appears blank. If you used bootstrap 4 your code would work.

Bootstrap 5 badge

about 4 years ago · Santiago Gelvez Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda