Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2022-07-09 04:13:17

Amin
Member
Registered: 2020-08-03
Posts: 17

Photo in header

Hi,

I hope you are doing well. This in my website. I would like to add a large photo (1900*448) behind the texts in header section. Could you please tell me the simplest way? What should I add in style and header section to do this?

Thank you for your help in advance.

Offline

#2 2022-07-09 06:13:33

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 8,870
Website GitHub Twitter

Re: Photo in header

Hi Amin,
css is the easiest way.

  .site-header {
    padding: 2em 0;
    background-image: url("/images/##.jpg");
    background-repeat: no-repeat;
    background-size: cover;
  }

Yiannis
——————————
neme.org | hblack.net | EMAP | NeMe @ github
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB