Add different cell space
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>Vertical alignment examples</title> <style type="text/css" media="all"> table { font: 1em/1.5em Georgia, serif; border: 1px solid black; margin: 1em 1em 0 1em; } p.extraSpace { margin: 1.5em 0 0 0; } p.lessSpace { margin: 0.5em 0 0 0; } table.type3 p { margin: 0; padding: 0.75em 0; } table.type3 td.two p { padding: 0.5em 0; } table.type3 td.three p { padding: 1em 0; } </style> </head> <body> <table class="type2"> <tr> <td>this is a test. </td> <td class="two"><p>this is a test. </p></td> <td class="three">this is a test. </td> </tr> </table> <table class="type2"> <tr> <td><p>this is a test. </p></td> <td class="two"><p>this is a test. </p></td> <td class="three"><p>this is a test. </p></td> </tr> </table> <table class="type2"> <tr> <td><p>Lorem ipsum dolor</p></td> <td class="two"><p>this is a test. </p></td> <td class="three"><p class="extraSpace">this is a test. </p></td> </tr> </table> <table class="type2"> <tr> <td><p>Lorem ipsum dolor</p></td> <td class="two"><p>Lorem ipsum dolor</p></td> <td class="three"><p class="lessSpace">Lorem ipsum dolor</p></td> </tr> </table> <table class="type3"> <tr> <td><p>Lorem ipsum dolor</p></td> <td class="two"><p>Lorem ipsum dolor</p></td> <td class="three"><p>Lorem ipsum dolor</p></td> </tr> </table> <table class="type3"> <tr> <td><p>Lorem ipsum dolor</p></td> <td class="two"><p>Lorem ipsum dolor</p></td> <td class="three">Lorem ipsum dolor</td> </tr> </table> </body> </html>