I have to re-vamp a 3 years old website mantaining substuntially the same look&feel while upgrading coding technologies with extensive CSS3 techniques, to make it modern and responsive.
This was a design that used transparency, emboss and cutted areas, originally crated in Photoshop, and then coded using background tile images cutted from original one.
A detail, that synthetizes challenges to solve is shown here:
Here the the key topics:
- Header has a semi-transparent background that shows the body’s one, but has also 3D-look borders with an horizontal gradient from left to right.
- Header’s background (and its borders) has also an emboss look with light and shadows in upper-left and down-right corners.
- Logo and site name are over the header background in a cutted area.
Here, my actual WIP to re-create this with only CSS3:
As you can see, are still missing, emboss-effect, border-gradients and above all….. logo cutted area (for the moment I simply placed over an image, taken by original layout).
Can you help me to get the most similar result to original one?
Thank you.
2
Answers
For the emboss you can use an inset box shadow, or a background with a linear gradient value.
For the gradient border you can use the border-image property with a linear gradient value.
For the “logo cutted area” an idea would be to use a positioned parent div with a border radius and a matching gradient background.
You can create the shape using SVG paths :
To this basic shape, you can fill gradients, photos, etc.