The code works and renders the same across modern versions of Chrome, Internet Explorer, and Firefox.
You can see a working demo on JSFiddle.net
Here is a screenshot of what the HTML markup and Styling produces...
If you find it useful, feel free to use it for your own projects.
Edited by JorgeM