Clare 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. >
This one method: <http://www.jakpsatweb.cz/css/css-vertical-center-solution.html> Best, ~dL PS Not a good idea to use px for line-height as it sometimes trips some browsers. Usually, no unit of measure is used with line-heght-- just a raw number such as 1.7;. -- http://chelseacreekstudio.com/ ______________________________________________________________________ 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/