i know that you have all helped me with this before, but i still can't get it to work right.
how do i center text within a div, i can get it to center horizontally, but vertically i know that you use line-height, but it still isn't perfectly centered. my code can be found at http://www.coloredfortunecookies.com and it is the text within the .gobox that i want centered, please help!!!!
line-height only work for a single lien of text.
I just add an extra bit of top-padding to visually vertically center text in a <div>.
You could also use display: table-cell; but I can't remember wich versions of IE that is not supported in, 6 and 7 certainly not, maybe 8 and I think thereafter yes
#container {
display: table-cell;
width: 180px;
height: 400px;
background-color: #e7dbcd;
vertical-align: middle;
}
North America
Europe, Middle East and Africa
Asia Pacific