Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating really bold text with css

Tags:

css

Is there any way to make my font bolder then my examples below? I have tried increasing font-weight from 900 to 1500 but I don't see any difference.

#step-1 div {
    font-weight: bolder;
    font-weight: 900;
}
like image 568
pethel Avatar asked Nov 04 '25 16:11

pethel


2 Answers

Use text-shadow to make it look bolder.

.really-bold {
  text-shadow: -1px 0, 0 1px, 1px 0, 0 -1px, -1px -1px, 1px 1px, -1px 1px, 1px -1px;
}

body {
  font-family: Arial;
  font-weight: 900;
  font-size: 40px;
}

.really-bold {
  text-shadow: -1px 0, 0 1px, 1px 0, 0 -1px, -1px -1px, 1px 1px, -1px 1px, 1px -1px;
}
<div class="normal">SAMPLE TEXT</div>
<div class="really-bold">SAMPLE TEXT</div>
like image 102
Antony Avatar answered Nov 07 '25 15:11

Antony


No. font-weight: 900 is the maximum. You could use another font.

like image 35
Linus Caldwell Avatar answered Nov 07 '25 15:11

Linus Caldwell



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!