0

I have a angular widget directive with my own css. when i add my widget in a another application component it's overriding with Bootstrap default css/styles.

Here is my boostrap css enter image description here

My question is How i can remove font-family in my compoent.css I am trying to override, but its not working?

    body {

line-height: 1.15; 
}

enter image description here

I also tried with !important as follows, but still applying bootstrap styles

body {
  font-family: "Open Sans", sans-serif !important;
}
Shakeer Hussain
  • 2,230
  • 7
  • 29
  • 52

1 Answers1

1

Insert your CSS after the bootstrap CSS. If that doesn't work user !important to overwrite the styles you want.

example:

body {
   font-family:none!important;
   line-height: 1.15!important;
}
beanic
  • 539
  • 6
  • 22
  • I tried as follows but still defautl styles applying body { font-family: "Open Sans", sans-serif !important; } – Shakeer Hussain Jan 23 '20 at 14:23
  • I have updated the answer. You have to add "font-family:none!important;" if you want annul that property for all the page. – beanic Jan 24 '20 at 09:39