1. I want to centre a DIV
2. I want to centre the contents of a DIV

I did a google and it seems this is not straight forward!
I came across several different answers
I'd be happy to go with one of the answer: but most of these are dated more than 5 years ago - I assumed that the code maybe old and outdated now?

Can someone give me a definitive answer to how to centre a DIV and separately, how to centre the contents of a DIV

Thanks!


OM