CSS different font for styles that make text bold
Common tags like b
, strong
and headings are styled by the browsers default stylesheet. You have to overwrite them by your own.
h1,
h2,
h3,
h4,
h5,
h6,
b,
strong {
font-weight: normal;
}
How to add bold text with CSS?
Sure:
.OwnerJoe:before {
content: "Joe's Task:";
font-weight: bold;
}
Creating really bold text with css
No. font-weight: 900
is the maximum. You could use another font.
how to make font thicker then 900 using css
use text-stroke
.box {
letter-spacing: 5px;
font-size: 30px;
font-weight: 900;
font-family:sans-serif;
}
.th {
-webkit-text-stroke: 3px;
text-stroke: 3px;
}
<div class="box">HELLO WORLD</div>
<div class="box th">HELLO WORLD</div>
How do I make text bold in HTML?
use <strong>
or <b>
tag
also, you can try with css <span style="font-weight:bold">text</span>
Related Topics
Re-Order Entire Page with CSS Flexbox
How to Draw a Trapezoid-Like Card
Lighten the Background Colour from Another Class
How to Add Badge on Top of Font Awesome Symbol
CSS Keyframe Animation CPU Usage Is High, Should It Be This Way
What Happens When the Browser Doesn't Support a CSS Pseudo-Class
Create CSS for Internet Explorer Only
CSS Overlapping Elements & Opacity Issue
How to Target CSS3 Columns Individually with Selectors
CSS Variables Don't Work in Microsoft Edge
Height of Flex Item Is Wrong in Safari
CSS Adjacent Sibling Selectors - IE8 Problem
On the Web, What Fonts Should I Use to Create an Equivalent Experience Cross-Platform