Is it possible to automatically center text and crop the left/right sides when the viewport is resized smaller, ensuring it always stays centered on the screen even if it exceeds the size of the viewport?
I'm considering using either CSS or jQuery / JavaScript for this. However, I would prefer to use CSS only if that's possible.
HTML:
<div class="headline">
<p>============ HERE IS SOME TEXT ============</p>
</div>
CSS:
.headline {
?
}
.headline p {
?
}