<!DOCTYPE html> <html> <body onload="document.getElementById('t').style.display = 'block'"> <!-- space between the two spans is key --> <span style="display: table-cell">First line</span> <span style="display: none" id="t">Second line</span> </body> </html>