Skip to main content
How to make Facebook comment box responsive?

How to make Facebook comment box responsive?

AuthorWebtech Nepal Team
Publish DateSeptember 16, 2022

If you want to know how to make Facebook comment box responsive? We have an easy way to make Facebook comment box responsive for your website. We need to override default Facebook’s default css class. Add the below code to your css file, and get the Facebook comment responsive website.

You can use the following custom CSS:

/* FB Comments responsive */

@media only screen and (max-width: 767px) {
.fb-comments {
width: 100% !important;
}
.fb-comments iframe[style] {
width: 100% !important;
}
.fb-like-box {
width: 100% !important;
}
.fb-like-box iframe[style] {
width: 100% !important;
}
.fb-comments span {
width: 100% !important;
}
.fb-comments iframe span[style] {
width: 100% !important;
}
.fb-like-box span {
width: 100% !important;
}
.fb-like-box iframe span[style] {
width: 100% !important;
}
}

Let's Build Something

Great Together

Have a website or software project in mind? Tell us what you want to build, improve or solve. We will review your requirements and discuss a practical approach for your project.