Jump to content

Make some part of title responsive


Recommended Posts

Hi everyone

I've been trying to solve the following case for hours:

Let's take this as an example:

<h2> Hello World <span style = "font-family: 'Courier New', Courier;"> this is a </span> test </h2>

I have currently implemented the following via CSS:

@media only screen and (max-width: 768px) {
     h1 {
         font-size: 36px;
         line-height: 43px;
     h2 {
         font-size: 29px;
         line-height: 35px;

What I want: That in this example the font "Courier New" can be addressed separately and adjusted via CSS. I want to change this globally, not inline.

Does anyone have a clue here? I am slowly desperate.

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...