skip to Main Content

I am designing a WordPress website.
In this case I try to change the color AND the size of just the point in the end of the headline. Now the height of the point pushes the line above .

Question: How to increase the size of just one word or letter in a text without affect the line above?

Below is the image of issue.
Image of the Issue

2

Answers


  1. Chosen as BEST ANSWER

    Sorry, I have forgot to say I add alreadey some CSS code.

    <h1 class="title"><span class="lead solid-color">
    Wir helfen Unternehmen dabei ihre Mitarbeitergewinnung zu digitalisieren und mehr qualifizierte Fachkräfte zu gewinnen</span> <span>.</span>
    </h1>
    
    .title span:nth-child(2)
    {
        font-size: 72pt!important;
        font-family: 'Roboto Slab',   serif!important;
    }
    

  2. I think it can help you.

    div {
        font-size: 24px;
        text-align: center;
    }
    span {
        font-size: 30px;
        color: red;
    }
    <div>This is sample <span>text</span></div>
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search