css psuedo similar to :first-letter to change size of first word
Posted on 2012-08-22
On a site I'm building using wordpress as the CMS, the site title has two words (Wingham Motel).
I want the word "Wingham" to appear on top of the word "Motel" which is easy enough to do, I just limit the width of the DIV and specify line height to suit.
What I'd like to do though, is make the top word (which has more letters) shrink to be the same width of the bottom word.
Easy enough to do if one was in a span, but, the words are pulled in from the wordpress database <?php bloginfo('name'); ?>.
I was hoping there was something like the :first-letter pseudonym to achieve this...