HTML and CSS coding for inline-block elements
<!DOCTYPE html> <html> <head> <title></title> <style type="text/css"> #faq p.pad { display: inline-block; border: thin dotted; padding: 1px; font: bold small sans-serif; } #faq p.mad { position: relative; bottom: -1em; } </style> </head> <body> <div id="faq"> This is a test. This is a test. <p class="pad">7 8 9<br/>4 5 6<br/>1 2 3</p> while the keys on a telephone are <p class="pad mad">1 2 3<br/>4 5 6<br/>7 8 9</p> is ... </div> </body> </html>