Forums

Display different font sizes in excerpt than in post (5 posts)

  1. rcostica
    Member
    Posted 7 months ago #

    Hello,

    I was wondering if anybody can tell me haw can I display different font-sizes in excerpt than in the actual post.

    What I mean is, if you take a look at my page http://www.makeityourring.biz you will notice that the excerpt for the top post is in a different font-size than the rest. That is because the post is really short and it looked bad if I kept the same font-size as for the others, so I wrapped it in a <p> tag and increased it to 16px. But now it looks really bad on the home page where the excerpt is displayed along with the others.

    Any help is appreciated,

    Thank you!

  2. rcostica
    Member
    Posted 7 months ago #

    Anybody?

  3. Josh
    Member
    Posted 7 months ago #

    You need to specify different classes in your CSS.

    For instance... you can make a p.test1 and a p.test2 each with different css attributes. Then, just call which one you want to use while posting.

    For instance...

    <p class="test1">This is my text</p>

    Or

    <p class="test2">This is my text</p>

  4. rcostica
    Member
    Posted 7 months ago #

    Thanks for the reply!

    I will try this and let you know how it turns out.

  5. Josh
    Member
    Posted 7 months ago #

    Okay. So just to be clear. In your stylesheet you would add something like this:

    p.test1 {font-size:18px;)
    p.test2 {font-size:28px}

    Then just reference them as I described above using the <p class=""> tag.

Reply

You must log in to post.

About this Topic