Build box for pseudo-element :before and :after with display = inline.