• Resolved jewalker

    (@jewalker)


    Hi,

    I would like to display the site-title in the middle of the screen. Is there some css that would work for all devices?

    Thanks for any help.

    Jane

    The page I need help with: [log in to see the link]

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

    (@jewalker)

    Regarding the above question, I have just realised that it’s an image of the company name that I need to display in the middle of the screen, instead of the site-title. Is there a way to do this?

    Like the site-title, it needs to move up on scrolling while the background image remains static.

    Any help is appreciated.

    Jane

    Thread Starter jewalker

    (@jewalker)

    I have managed to add an image, using the option to add a logo, but it wants to crop it to a square but the image I want to display is rectangular.

    Any ideas?

    Thanks,

    Jane

    Hey @jewalker! Can you try using the following css code by going to Appearance > Additional CSS?

    .has-header-image.twentyseventeen-front-page .site-branding {
      vertical-align: middle;
    }
    @media(min-width:48em) {
      .has-header-image.twentyseventeen-front-page .site-branding {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center
      }
    }
    Thread Starter jewalker

    (@jewalker)

    Thanks so much @properlypurple, that worked perfectly. Also, by reducing the image size I was able to use a rectangular logo.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Display site-title in centre of screen’ is closed to new replies.