I'm not sure how you ever were able to. DIV by itself is 100% wide by HTML default, so it's already centered at 0 from left and right margins. In order to center it, you would have to define a width smaller than 100%. If you only want to center the contents, and not the DIV itself, make sure you are highlighting the contents of the DIV and not the whole DIV.