>>> On 12/2/2007 at 4:28 PM, "Clare" <[EMAIL PROTECTED]> wrote: Hello!
I have a general question about vertically aligning text within a div, I would just like to check which is the correct way to get this to happen. When I have a div say for example 50px high and I have a line of text within the div, I normally either use padding to get the text to appear roughly central or I set the line height to 50px. Is there an easier or more correct way to accomplish this? Regards, Clare Green. While CSS does not have a property for aligning horizontally, it does have a property for aligning vertically. Check "vertical-align" in the W3C property table at http://www.w3.org/TR/2004/CR-CSS21-20040225/propidx.html -- Ann ==== ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/