• 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 https://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!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter rcostica

    (@rcostica)

    Anybody?

    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>

    Thread Starter rcostica

    (@rcostica)

    Thanks for the reply!

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

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Display different font sizes in excerpt than in post’ is closed to new replies.