<!DOCTYPE html> <title>Bug 376137</title> <style> p { width: 100%; border: solid 1px;} </style> <div style="display: -moz-inline-grid"> <div><p>M</p></div> <div><p>N</p></div> </div>