Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Font-weight doesn't work for labels in Chrome

I have this line in my code:

<label style="font-weight: bold" for="sedii18n_codice_paese_indirizzo">Codice paese indirizzo</label>

but the label is showed normal.

If I go to the Chrome Inspector I can see this:

font-weight: normal !important;

If I change font-weight in the inspector the weight of the font is modified normally.

like image 887
ziiweb Avatar asked Dec 12 '22 18:12

ziiweb


1 Answers

Looks like something else is overriding your bold style, hence the !important tag. Chrome Inspector should tell you where the font-weight: normal !important; is being applied. You can try putting font-weight: bold !important; inside your style attribute to override this override. :-)

like image 184
Jez Avatar answered Dec 21 '22 04:12

Jez