How to put width 100% on facebook comment

1.1k views Asked by At

How to put width 100% properly on the code below? Please help I'm a beginner on HTML and CSS

<div>
<fb:comments expr:href='data:post.url' expr:title='data:post.title' expr:xid='data:post.id' mobile='yes' numposts='2'/>
</div>
1

There are 1 answers

1
Kishor On

Use this, facebook's own utility to generate comment box code. You do have an option to modify the width there.

You can specify width in pixel if you want, or you can specify width as 100% for fluid width.

data-width="100%"

https://developers.facebook.com/docs/plugins/comments