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

305
Visualizações
Custom Styling in react-bootstrap is not working

I am having some issues with custom styling in react-bootstrap. More specifically, I am having some troubles styling the component. I am trying to center the contents of the Cards vertically.

I've created a custom.scss and linked it properly according to the react-bootstrap introduction page. The custom style loads into my HTML page... but is overriden by _transition.scss overriden style here

I've also tried creating a "cardStyle" object in the component's file and then linking the style to the component with style = "cardStyle" - This seems to work okay... but some styles are still overriden.

I've also tried assigning the card a className, and then styling that className... gets overriden.

.card{
    background-color: aqua;
  }

.customCard{
  background-color: aqua;
}
@import "~bootstrap/scss/bootstrap";

The only thing I was able to make work was adding !important to the styles in custom.scss I feel like this is wrong and sloppy. Can someone explain to me what I am doing wrong?

about 4 years ago · Juan Pablo Isaza
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