Step 15 Coding Header
Firstly, we will need some html to work on. So let’s try to separate all the elements that we have on our mock-up. A repetitive background, a non repetitive background (gradient), logo (image) and a search form. Let’s try to add them. Remember to delete the html comments that are inside “” tags.
Now let’s cut some images. At first we will need a guide that will separate a header from menu (Select menu shape or whole group so guide should easily stick to).
![step-015[5] step-015[5]](https://cdn.photoshoptutorials.ws/images/stories/86038c839355_104BC/step-0155.jpg?strip=all&webp=82&avif=82&w=1920)
Hide the layers with gradients so the header’s background will be repetitive in x-axis (horizontally). Select few first pixels and like we did with first background image and all next images follow the standard actions: copy merged > New document > Paste > Save As (jpg or png). Save this one as a topbg.jpg.
![step-015b[5] step-015b[5]](https://cdn.photoshoptutorials.ws/images/stories/86038c839355_104BC/step-015b5.jpg?strip=all&webp=82&avif=82&w=1920)
Now select the whole top WITH gradients and save it as a topgradient.jpg
![step-015c[5] step-015c[5]](https://cdn.photoshoptutorials.ws/images/stories/86038c839355_104BC/step-015c5.jpg?strip=all&webp=82&avif=82&w=1920)
Here’s the css for the backgrounds:
