Support » Themes and Templates » Adding shadow to blog title or description

  • Hi.
    I’d like to add a shadow behind the blog title and/or description in the heading of the blog.
    What I have so far is echoing the title or description again in black shifted a couple of px down and to the right. This turns out to be a lot of code compared to the task, first the shadow and then the same repeated for the bright front of the letters:

    <a style="top:101px; left:37px; position:absolute; color:#222;" href="<?php bloginfo( 'url' ); ?>"><?php bloginfo( 'name' ); ?></a>
    <a style="top:99px; left:35px; position:absolute; color:#fff" href="<?php bloginfo( 'url' ); ?>" title="<?php bloginfo( 'name' ); ?>"><?php bloginfo( 'name' ); ?></a>

    Any ideas on a simpler way to get the same result (text shadow), and which can be hardcoded into the template file?

  • The topic ‘Adding shadow to blog title or description’ is closed to new replies.