To center text in a div or container add the following to the CSS declaration for the container:

height: container height in value;
line-height: same container height in value;

for example:

height: 34px;
line-height: 34px;