The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Text positioning within div Re: Text positioning within div


To centre the text in a div for use like that you just have to make sure all your numbers work out.

Ideally, your div height and text line-heights should be the same. The divs height and widths should be the same and then your border radius is half the div height.

The text should be set to align centre too.