Re: [css-d] Getting text to center in a div

2007-08-05 Thread David Dorward
On 05/08/07, Kenoli Oleari [EMAIL PROTECTED] wrote: When I use this style: vertical-align: middle; with this div: why does the text align in the center horizontally but at the top vertically? 'vertical-align' Value: baseline | sub | super | top | text-top | middle | bottom |

[css-d] Getting text to center in a div

2007-08-04 Thread Kenoli Oleari
When I use this style: #p1 { left: 44px; top: 39px; position: absolute; text-align: center; vertical-align: middle; background-image: url(images/circle_small.gif); background-repeat: no-repeat; height: 100px; width: 100px; }