Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS set font to "strong"

Tags:

css

I need to set the font to "strong", but can't work out how to do this with CSS? I tried

font-weight: 'Strong';

And I also tried it without the marks and it didn't work either. I'd like to set it to strong and not just bold as I've heard it helps disabled people while they are browsing your website (but that may be rubbish?!)

like image 968
Joshua Avatar asked Dec 24 '12 00:12

Joshua


3 Answers

You probably mean:

font-weight: bold;
like image 123
Lee Taylor Avatar answered Oct 19 '22 10:10

Lee Taylor


There is no strong weight, try bold (which is usually the default browser style for a <strong> element.

more about font-weight at MDN

like image 6
steveax Avatar answered Oct 19 '22 10:10

steveax


I just solved this exact problem based off the post I read here. Bold is not what you want as bold is not the equivalent of strong.

For me using a polymer custom component.

Strong = font-weight: 400

Bold starts at font-weight: 500 or greater.

Looking into it a bit further reveals that this is dependant on browser version and display and sometimes things don't get rendered how you want.

More details can be found at the MDN link posted above by steveax and Ryan

like image 3
Callat Avatar answered Oct 19 '22 10:10

Callat