[Resolved] Is there a way to make the header Text responsive?

Home Forums Support [Resolved] Is there a way to make the header Text responsive?

Home Forums Support Is there a way to make the header Text responsive?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #220730
    Amer Kladnjakovic

    Hey πŸ™‚
    I bought your theme and its great but now I dont know how to make the text responsive in the header.
    What I mean you can see here: http://www.straberger.at

    When you resize the screen the text over the video is moving togehter but does not change size. How can I fix this?

    Thanks!

    #220731
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Right now you’re using the <font> element and setting a size.

    That’s no longer valid HTML, and isn’t responsive.

    Instead, you’ll want to wrap that text in a div with a class:

    <div class="my-font-size-class">
       Some text
    </div>

    Then add CSS for it:

    .my-font-size-class {
        font-size: 30px;
    }

    Then add responsive CSS for it:

    @media (max-width: 768px) {
        .my-font-size-class {
            font-size: 17px;
        }
    }

    Hope that helps you get started πŸ™‚

    #220741
    Amer Kladnjakovic

    Yup got it.. πŸ˜‰
    Thank you πŸ™‚

    #220746
    Tom
    Lead Developer
    Lead Developer

    You’re welcome πŸ™‚

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.