Part 1/4: Design and Code a site with Gimp, HTML and CSS
June 6, 2008
Many beginner web designers have trouble designing sites and then coding them properly and end up turning to tables and Dreamweaver. In this tutorial I will show you how to design a site in The Gimp and then code it in valid XHTML and CSS with divs and classes (not tables).
This is part one of a four part series on this subject, this part will be focusing on the design in The Gimp, part 2, 3 and 4 will be dedicated to coding it ready for the web. So keep coming back in the next couple of weeks or subscribe to our RSS feed.
So here we go:
-
Step 1
Create a new image in The Gimp, make it 960px (width) by 900px (height) and fill it with dark gray (333333)
-
Step 2
Now create a new layer 900px wide and call it page, fill it with white (FFFFFF). Use the arrow keys to move it into the center of the image like this:

-
Step 3
Go to Filters -> Light and Shadow -> Drop Shadow and set the Offset X and Offset Y to 0 and unclick Allow resizing, then click OK. This will add a shadow to the page area.
-
Step 4
Create a new layer called Header and make it 900px width and 150px height, move it into place like this:

-
Step 5
Set the foreground colour to 205974 and the background colour to 84a3e3 and select the Blend tool. Click and drag from the bottom of the layer to the top to create this effect:

-
Step 6
Select the select tool and click and drag a rectangle of height 5px at the top of the layer and fill it with the foreground colour.

-
Step 7
Now duplicate the layer and press Delete to empty the layer of its contents, this will save you time as you don’t need to create a new layer and position it. With the select tool, click and drag across the layer making a rectangle 100% width and 1px height and fill it with black (000000) and exactly below it do the same, this time filling it with white. Then change the opacity of the layer to 10.0. This will produce this effect (if you have difficulty understanding this, then check out my tutorial on this here:

-
Step 8
Duplicate the page layer and delete its contents, then using the select tool draw a rectangle down the right hand side of the page area with a width of 320px. Fill it with 84a3e3 and change the opacity of the layer to 15.0, this will produce this:

-
Step 9
Now create a new layer with a width of 900px and a height of 100px and call it footer, place it at the bottom of the design like this and fill it with 205974:

-
Step 10
Go to the top and click the Text tool. Click under the engraved area and add the menu items you would like, change the font to Arial Bold size 14 with colour white (FFFFFF) and move the layer so that it looks like this:

-
Step 11
Duplicate the top header layer and delete its contents, now under the engraved lines draw a rectangle and fill it with white (FFFFFF) and change the opacity to 10, this will create this effect:

-
Step 12
Finally, add you logo by using the Open As Layers option on the File menu and place it at the top left of the header area like this:

-
And that’s it for this part, we have created a simple layout which we will slice in the next part of this tutorial and make it ready for coding. There are much better designs that you can do in The Gimp but I just want to show you the basics in this series. As I said at the top, keep coming back or subscribe to our feed to be notified when the new parts are up.





Thomas
June 9th, 2008 at 2:51 pm
When will Part 2 come out?
Simon
June 9th, 2008 at 2:53 pm
Sometime in the next couple of days
Tylor
June 9th, 2008 at 6:45 pm
Hey no part 2?
Simon
June 9th, 2008 at 6:55 pm
I’m going to try and so part 2 tomorrow, it should be online sometime in the afternoon (GMT)
anjana
June 10th, 2008 at 6:46 am
hey, the part1 tut was good. Looking forward for part 2 soon.
lexor
June 10th, 2008 at 6:42 pm
gotta love it
Philaèthe
June 19th, 2008 at 12:01 pm
Awesome ! I was searching this style of tutorial for a long time. Found it. Tried it. Adopted it.
Very gooood explanations ! Thanks !!!
Marty
June 19th, 2008 at 10:14 pm
I really got a lot of good out of this. Thanks!
webmaster
June 19th, 2008 at 11:55 pm
i don’t undestand.. im new in GIMP.. i;m confused
webmaster
June 20th, 2008 at 12:21 am
in the step 4.. how can i move it to up?
Simon
June 20th, 2008 at 10:58 am
@webmaster
Make sure you have the rectangle select tool on (shortcut: R) and use the arrow buttons on your keyboard to move it up. Hope this helps and good luck.
faisanroses
June 25th, 2008 at 9:02 am
Hi guy!
At first, my congratulations for your tutorial: it’s bloody brilliant! I’m learnin’ a lot.
But I’ve a question for you: which format do we choose when savin’ the project for continuin’ on another moment? tiff, psd, etc…?
Greetings.
bAck
July 6th, 2008 at 2:10 pm
hi Simon,
what i must do in:
Step 6
Select the select tool and click and drag a rectangle of height 5px at the top of the layer and fill it with the foreground colour.
??
(im not from USA or UK …, my english is very easy)
Thanks for help
bAck
July 6th, 2008 at 2:11 pm
please, your andswer send here, thx
Simon
July 6th, 2008 at 2:14 pm
Hi, bAck.
If you look closely at the top of the image in step 6 you will notice that there is a selection being made, this is what I mean
dj
July 31st, 2008 at 3:21 am
Suggestions: In your tutorial, immediately name new layers. When referencing a layer use the specific name and not just “the layer”. Occasionally show the GIMP Layer Dialog so the reader can make sure they are in sync. I’ve only finished part 1, but nice job. I’d be interested in how you think about what colors to use in combination.
brian
August 4th, 2008 at 8:20 am
awsome tutorial
nemetral
September 9th, 2008 at 2:54 pm
Good tutorial. It’s nice to advocate the use of Gimp!
coder
September 19th, 2008 at 6:43 pm
awsome tutorial,but need better explain part 6 and 7,i got stuck there
coder
September 19th, 2008 at 6:51 pm
never mind,i got it anyway:D
chakaboo
November 14th, 2008 at 4:15 pm
thanks. its very helpful
iam Russian and speak runglish, sorry 
Mr_Anderson
December 16th, 2008 at 10:39 pm
Very nice tutorial! Though, I’m stuck on 6, 7, and 8.. Why would I duplicate a layer if I’m gonna delete its contents? It doesnt make sense to me