<!DOCTYPE HTML> <style type="text/css"> div { height: 200px; width: 200px; overflow: auto; text-shadow: 210px 210px 2px gray; font-size: 50px; } /* work around potential font overflow */ span { margin-left: 5px } </style> <div> <span>text</span> </div>