I am using bootstrap's "display-2" class, and I need to make the text responsive / smaller when I go in smaller devices.
Dramatically Engage[
I am using bootstrap's "display-2" class, and I need to make the text responsive / smaller when I go in smaller devices.
Dramatically Engage[
To make your text responsive you just have to use mediaquery in css file.
Media query is a CSS technique introduced in CSS3. It uses the @media rule to include a block of CSS properties only if a certain condition is true.
index.html
<div>
<h1 class="heading">Dramaticall Engage</h1>
</div>
style.css
.heading{
font-size: 30px;
}
@media only screen and (max-width: 768px) {
.heading{
font-size: 20px;
}
}
@media only screen and (max-width: 425px) {
.heading{
font-size: 14px;
}
}
Use @media
query for responsive size of fonts as per screen size and any content.
@media only screen and (max-width: 991px)
@media only screen and (max-width: 767px)
@media only screen and (max-width: 640px)
@media only screen and (max-width: 640px)