+ 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?
6 ответов
+ 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.
+ 5
You can use the CSS instead:
h1 {
font-size:__px;
}
+ 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
+ 2
use CSS font-size instead then
+ 1
Can you give me an example please?
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;
}