How to resize text in title using html
5 answers
Actually, I believe that what you are looking for is called Small Caps.
Try the following:
h4 {
font-variant: small-caps;
}
<h4>This is Small Capped</h4>
<p>This is regular text.</p>
More information: https://css-tricks.com/almanac/properties/f/font-variant/
+1
source to share
You can resize the text either in CSS or in the style attribute.
<h3 style="font-size:50px">The H3 Title</h3>
In CSS:
h3 {
font-size:50px;
}
If you want to fit parts of your name, use strong ones.
<h3 style="font-size:50px"><strong style="font-size:25px">The</strong> H3 Title</h3>
h3 {
font-size: 50px;
}
#h3Strong {
font-size: 25px;
}
#h4Strong {
font-size: 20px;
}
h4 {
font-size: 45px;
}
<h3><strong id="h3Strong">The</strong> H3 Title</h3>
<h4><strong id="h4Strong">The</strong> H4 Title</h4>
0
source to share
Have you tried something like this:
.c2{
font-size:2em!important;
}
.span{
font-size:1em;
}
h3{
text-transform: capitalize;
}
And the html:
<h3>
<span class="c2">1</span>
<span>2</span>
</h3>
.c2{
font-size:2em!important;
}
.span{
font-size:1em;
}
h3{
text-transform:uppercase;
}
<h3>
<span class="c2">a</span>
<span>b</span>
</h3>
0
source to share
To increase the font size, use the CSS property font-size
.
To make all text uppercase, use the CSS property text-transform
.
.big {
font-size: 2em;
text-transform: uppercase;
}
<h3>Hello World!</h3>
<h3 class="big">Foo Bar!</h3>
0
source to share