SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2008
    Posts
    52
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Changing Font Size in a Single Post

    Hi,

    I'm curious how I vary my font size and specify
    different font sizes for different lines within a
    single Wordpress post. Please bear in mind I'm
    not a CSS expert, so please keep the explanation
    adequate for a newbie.

    Many Thanks For Any Advice

    George

    PS I've tried just pasting different size text from
    Word processor, but Wordpress just normalizes
    the size again. Wish it was that simple!!!

  2. #2
    SitePoint Enthusiast Mongoose.wa's Avatar
    Join Date
    Feb 2008
    Location
    Seattle, WA
    Posts
    68
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can wrap the text you want to be larger in a special span like this:

    This is normal size text, <span class=largeText>but this is bigger!</span>

    and then style it like this:

    span.largeText {
    font-size: 18px;
    }

    Use pixels, em's, percents at your discretion.


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
  •