/ Published in: Other

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
h1 { display: table-cell; vertical-align: middle; text-align: center; } h1 span { display: none; } /* Portrait */ @media screen and (max-width: 320px) { h1 span:nth-child(1) { display: inline; } } /* Landscape */ @media screen and (min-width: 321px) { h1 span:nth-child(2) { display: inline; } }
Comments
