+ 2

CSS how to make a text bold?

Is there a way to make a text bold with CSS? I know there is with HTML, but I don't always like going back to the HTML to edit a text --- so I was wondering what declaration to use to make text bold.

18th Jun 2019, 4:21 AM
Ginfio
Ginfio - avatar
4 ответов
+ 1
I don't tend to use the 'font-weight: bold;' css. Instead i use this: p { font-weight: 700; } I do this because different fonts can look different when specified as 'bold' and this allows you to go back and take it down to 600 or even 400 so it is midway between bold and normal. I do not know how popular it is to do it this way but it is definitely the way i see it done the most!
18th Jun 2019, 7:42 AM
Jack Robert Nicholas Ahern
+ 5
Use the font-weight property. p { font-weight: bold; } or try to visit: https://www.w3schools.com/cssref/pr_font_weight.asp
18th Jun 2019, 4:31 AM
Nootnoot
Nootnoot - avatar
+ 5
Ginfio I studied your codes, you could build some complicated css styling and animation, but somehow you still ask a very simple css style question.. 🤔 And it's also easily search this answer from google too, but I dont think your need it.
18th Jun 2019, 5:01 AM
Calviղ
Calviղ - avatar
29th Sep 2019, 2:14 AM
ⒶⓇⒿⒾⒶ
ⒶⓇⒿⒾⒶ - avatar