SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Guru
    Join Date
    Nov 2008
    Posts
    848
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to format a post title like this in Wordpress

    Hi I am formatting my page or post titles in the following manner

    <h1><span class="bigger">W</span>e get it right the first time round</h1>

    Which means that the first letter is slightly bigger than the others. How can I replicate this in Wordpress? As far as I know I cannot enter html code in the Wordpress post title field, which would be required to achieve such an effect.

    Thanks

  2. #2
    Is Still Alive silver trophybronze trophy RetroNetro's Avatar
    Join Date
    Jul 2003
    Location
    Texas
    Posts
    6,883
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Code HTML4Strict:
    <h1 class="bigger">We get it right the first time round</h1>

    Code CSS:
    h1.bigger:first-letter{
     font-weight:bold;
     font-size:150&#37;;
     color:red;
    }
    Hope it helps.

  3. #3
    SitePoint Guru
    Join Date
    Nov 2008
    Posts
    848
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ah didnt know about that pseudo class, cheers


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •