Please tell me how to design rounded square table with appropriate rounded corner cell in HTML/CSS ?

I am generating PDF from HTML so can anybody tell me how can I give page number in PDF as header as well as footer ?

Regards...