<!DOCTYPE html> <html> <head> <style id="s"> span { display: table-cell ! important } </style> </head> <body> <span style="display: block">a b</span> <span style="display: block">c d</span> </body> </html>