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 post
Share on other sites
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...