Quote:
Originally Posted by utnalove
The bad thing is that the facebook function is not working anymore and instead of 4 comments it's showing 0.
|
The Facebook API probably requires that the element be a
div element. You can use a
div element and style it with
display: inline to be rid of the line-breaking behavior:
Code:
.fb-comments-count { display: inline; }
abduraooft was correct in noting that your code was invalid.
div elements are disallowed within
a elements in XHTML 1.0 Transitional.
That restriction has since been removed in HTML5, however. You may want to consider switching to that from XHTML 1.0 Transitional. Your document has a number of other errors that can also be remedied with such a change, including use of the
document.write method (which is disallowed in XHTML) and
data-* attributes (used by the Facebook API).