Is there anything wrong with having a css class and id with the same name? Like .footer for the article/post\'s footer and #footer for the page footer.
No, there is nothing wrong, but it might be better to use different names to not confuse other developers. It is more (human) error prone to use different names.