How can I adjust the size of heading? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How can I adjust the size of heading?

The largest size is h1 , second largest is h2. But if I want a size which is middle between h1 and h2 , what can I do?

18th Nov 2017, 6:17 AM
Muhammad Tawhidul Islam
Muhammad Tawhidul Islam - avatar
6 Answers
+ 6
There is a code to explain https://code.sololearn.com/Wk8jNRTJRWEa/?ref=app I used p instead of h1 but it is the same thing font-weight:900 is to make the text as bold as h1 or h2.
18th Nov 2017, 6:26 AM
Ledio Deda
Ledio Deda - avatar
+ 5
You can use the CSS instead: h1 { font-size:__px; }
18th Nov 2017, 6:20 AM
Ledio Deda
Ledio Deda - avatar
+ 3
You could use font-size:smaller to create heading size between h1 and h2 No need to specify any font size in pixel Check out the sample https://code.sololearn.com/WOTQw7qyKYX5/?ref=app
18th Nov 2017, 8:17 AM
Calviղ
Calviղ - avatar
+ 2
use CSS font-size instead then
18th Nov 2017, 7:13 AM
᠌᠌Brains[Abidemi]
᠌᠌Brains[Abidemi] - avatar
+ 1
Can you give me an example please?
18th Nov 2017, 6:22 AM
Muhammad Tawhidul Islam
Muhammad Tawhidul Islam - avatar
0
This will make all your h1 as 18px Your html markup <h1>your text here</h1> Your CSS is H1 { font-size: 18px; } If you want to style a specific heading <h1 class="anyname">your text here</h1> Your CSS is .anyname { font-size: 18px; }
23rd Nov 2017, 3:52 PM
Mr X
Mr X - avatar