Kubrick is the default theme used by WordPress and it's a quite popular theme to build upon, but the plain blue header image used is quite unattractive. Here I'll show you how easily you can create web headers which look like Kubrick but with header graphics of your own choosing. All you need is to choose a decent image to use as a header and you can prepare it in GIMP to use with your style sheets. A good header looks extremely attractive in a curved, fixed width theme and here's how you can get the images you need to create your style sheet.
Step 1: Get a good header image

Open a good header graphic you want to use in GIMP. I've chosen a simple blend effect as a background image, but you can use cross-sections of good photos or any other background image which you think fits in well with your theme.
Click on a page number to continue the tutorial.
Step 2: Round the corners
Choose the menu option
Script-Fu -> Decor -> Round Corners....

Disable
Add drop shadow and
Work on copy. Choose the radius as 10. If you prefer you can experiment with this value to get the effect you want.
Step 3: Add a border
Now create a white border around our header graphic. Choose
Script-Fu -> Decor-> Add border...

Make sure the border colour is white and ensure that the border width is slightly higher than the round radius value you chose earlier. This will allow you to "cookie-cut" the theme images from the base image we're creating.
Step 4: Flatten the image
Now your image should look like this (if your border isn't entirely white, fill the non-white regions with white). Flatten the image using the menu option
Image -> Flatten image.

Your image should now appear like the one shown in the screenshot above.
Step 5: Create a shaded outer border
Now you need a shaded outer border which will enclose the header, the body and the footer images to use for your theme. Choose the menu option
Script-Fu -> Decor -> Round Corners... once again.

Let the shadow offset for x and y be 0 and choose a blur radius of 8 (you can experiment with this value to get different results). Adjust the background colour to whatever you want for your body background before you apply this script. Your image should now look like the one in the screenshot below.

Fantastic, you now have the base image from which you can "cut out" your theme.
Step 6: Cookie-cutting the theme images
From the base image above, you can now cut out suitable images for header, body and footer for the theme to use. Here is an example (select the portion from the base image, use
Edit -> Copy visible and paste the results into new files. Remove the inner image clippings from the content background and footer images. Here are the results from the above base image.
Header image:
Content background image:
Footer image:

That's all.
Step 7: Relevant CSS attributes in style sheet
Assuming that the
DIV IDs for header, content body and footer will be
header,
content and
footer respectively. Make sure that you've also set the HTML
BODY background attribute to the exact colour as the background colour used (grey, in this instance).
#header {
background-image: url('result-header.png');
background-repeat: no-repeat;
width: 340px;
height: 143px;
}
#content {
background-image: url('result-content.png');
background-repeat: repeat-y;
width: 320px;
padding: 10px;
}
#footer {
background-image: url('result-footer.png');
background-repeat: no-repeat;
width: 340px;
height: 45px;
}
Here's a sample screenshot of a website with a Kubrick-like web header. Much nicer than a plain header, isn't it?

You should, of course, customize the above CSS code to ensure best results. Your theme is now ready to use.
13 comment(s)
Leave a comment »Comment by Ramshankar (visitor) on Mon, 8 Oct 2007 @ 18:17 IST #
Comment by hari (blog owner) on Mon, 8 Oct 2007 @ 18:30 IST #
Comment by drew (visitor) on Mon, 8 Oct 2007 @ 21:13 IST #
Comment by hari (blog owner) on Mon, 8 Oct 2007 @ 21:19 IST #
Comment by Sudipta Chatterjee (visitor) on Tue, 9 Oct 2007 @ 09:53 IST #
Comment by hari (blog owner) on Tue, 9 Oct 2007 @ 10:19 IST #
Comment by RT Cunningham (visitor) on Wed, 10 Oct 2007 @ 19:43 IST #
Comment by hari (blog owner) on Wed, 10 Oct 2007 @ 19:54 IST #
Comment by Davud (visitor) on Tue, 9 Sep 2008 @ 09:02 IST #
Comment by hari (blog owner) on Tue, 9 Sep 2008 @ 13:11 IST #
Comment by mike (visitor) on Sun, 16 May 2010 @ 04:08 IST #
Comment by Hari (blog owner) on Tue, 18 May 2010 @ 20:26 IST #
Comment by hsidhi (visitor) on Mon, 14 Nov 2011 @ 12:53 IST #