Several weeks ago, I showed you how to take a PSD design and convert it into HTML and CSS. Given the popularity of that particular tutorial, I've decided to create a second series. However, I'm not much of a designer. Instead, I asked Collis if he would allow me to use the design that he used for a recent tutorial for Web Design Week.
Just like last time, I'll take you through the process step by step - even through the tedious parts. Enjoy!












User Comments
( ADD YOURS )alex December 10th
cool, and first!
( )dht April 6th
how can i watch the vadeo?
( )bcarter December 10th
Nice little, simple tut. Excellent for beginners, I’ve already emailed it some newbies.
( )Tom December 10th
Thnx for the tut, great resource.
( )Dewey December 10th
A bit rudimentary if you ask me.
( )nhoss2 December 10th
it was a bit laggy, but i finally finished it. very well done mate!
( )Kumail.H.T December 10th
Well explained
( )Start Your Own Website December 10th
Great as always Jeffrey!
( )Anthony Bruno December 10th
Because the world cant get enough paper airplanes.
( )dlv December 10th
very nice, thanks as always for all videos, resources and time spended
( )Garrett December 10th
The video ends right at the point where you are styling the HTML tag… where can I see the rest of the video? Watching you code is the most help I’ve found since I started learning how to build sites.
( )M.A.Yoosuf December 10th
thank you, i needed this
( )Jeffrey Way December 10th
Hey guys. I’m so sorry. Camtasia must have not exported the video properly. I’m taking care of it as I write this. An updated video should be on the site within the next hour.
So sorry!
( )Anto December 10th
The whole video isnt loading for me. Like most of it is cut off, and the video is really choppy, i say stick with the blip.
( )Anto December 10th
Ok forget my last comment hehe. I didnt read Jeff’s comment. Hopefully it get up before my eyes close fully, im so tired and gotta get up early, but i like watching this sort of stuff.
( )John Dangerous December 10th
Thanks, i’m somewhat of a beginner. I am pretty good at css but I always have problems with my code when I try to build from the ground up.
( )Jeffrey Way December 10th
Okay - I’ve updated the video.
( )Danh ba web 2.0 December 10th
Very useful for me !
( )Thanks you very much !
weblizzer December 10th
great this was originally on psdtuts and it’s very interesting.. learning those things..
( )Ariyo December 10th
Well done Jeffry.
( )insic December 10th
nice tutorial.
( )Ewout Winkelman December 11th
Nice tutorial for beginners!
But, a little addition for beginners:
( )h1 should not always be used for “Your Logo”, but in many cases you use it in your content (in this case: “How we Work”) for SEO related thingies
zamson December 11th
Thanks for this but I’m wondering when people are gonna start using Fireworks on a regular basis. I’m probably gonna sound like an Adobe sales man but Photoshop was never meant for web design.
Been using Fireworks for a long long time and strongly suggest people working a lot with web design mock-ups to check it out.
( )Dave December 11th
This is a great tutorial. Though, If I had the money I would buy you a new computer for Christmas, Are you running 95 or just the old school theme in XP, Anyways, Thanks for the help.
( )Guido Schetters December 11th
is it my mistake or is the “small” text next to the Logo not showing up in the IE 6?
also I would like to know: did you line-up the transparent menu background with the html background? because that’s a big deal for me. For example, if you re size the screen, is it still lining-up?
( )Great tutorial and a great layout!
michael December 11th
what kind of editor are you using? it looks nice, and would like to know where to buy or to download
( )Muhammad Haris December 11th
Good job. Even though I’m confident with my HTML/CSS, I learned a few things that will help me later.
( )Branden December 11th
Aptana > Netbeans
I actually love Aptana for editing my rails stuff. It’s a bit buggy in 64 bit Vista but I’ve been told that’s because Eclipse lacks 64 bit support.
Now back to the video, not to bad on showing us the jist of it. It’s amazing how long it takes when your creating a video of the process versus just running with the flow.
P.S You don’t like the new CS4 look? It looks as if you defaulted to the CS3 look.
( )Rasmus December 11th
This may be a stupid question but…. How does the design look in IE6?
I mean.. does the tutorial cover the lame IE-fight?
( )OpenSourceHunter December 11th
Very useful tut, thanks!
greetz
( )http://www.opensourcehunter.com
Simon December 11th
Nice article, thanks.
( )But again, what about Fireworks ? Why still use Photoshop if there is already software designed for such a task ?
Whatever, thanks for the article anyway and go on !
The London Builder June 14th
You’ve answered the question yourself really, why did you come to this page which is ‘Converting a Design From PSD to HTML’? Mostly because designers like to use Photoshop over Fireworks
( )guile December 11th
Since you’ve changed video format my itunes is not showing new screencast episodes anymore. Can you check this to see what’s wrong?
( )Wilco Dohmen December 11th
Nice screencast, some helpfull info here, was wondering how did you find the lineheight of 21px in photoshop for the paragrafs
( )Alejandro Lorca December 11th
thanks for the tut… very useful…
( )M.A.Yoosuf December 11th
you misses one thing Jeff, that’s in the Top navigation you missed a small line, pls solve that in net tut
( )DKumar M. December 11th
Really useful for those who pays for PSD 2 HTML conversion !!
Good Tutorial.
( )Matt Radel December 11th
Aptana is a pretty swell editor - I love the on the fly validation. The video player is a shade annoying though…it took me a minute to figure out how to pause the video. :/
( )david December 11th
really great tut ! one of the best I ever seen ! Thanks a lot !
( )chad December 11th
@Simon - Yahoo makes a site builder for creating websites also but that doesn’t mean you should use it.
( )AnDi December 11th
Helpful Tutorial
( )Tammy Hart December 11th
Good tutorial, I would probably do a few things different, like what “Ewout Winkelman” said.. h1 is better used for your content’s title. Search engines, and people, are not usually looking for “The Name of Your site”, they are looking for “A page about this great topic”. Since your head title, and your h1 are the two places that search engines look first, they should contain the most valid information about the content coming up on the resulting page.
I’m a newbie here, so I’m probably beating a dead horse, right?
( )Chris Gunther December 11th
Nice basic tutorial.
( )Graphics December 11th
Awesome show of how to convert PSD to HTML. Always looked for something like this. No need to pay designers to do the converting anymore :]
( )macias December 11th
yes ! i’m doing the first “converting screencast” right now…
( )it’s very helpful 4 me
more more more !!!!!!!!!!!!
Hjortur Scheving December 11th
Thank you for this tutorial, very nice to see the step by step process.
Couple of things.
1. don’t apologize for the video being long, take the time you need, us newbies like to see it step by step. If something we just skip ahead
2. As mentioned here above the small tag next to the logo doesn’t appear in IE6 (not sure with the IE7)
3. The main menu doesn’t line up with the secondary container, you talked about adding an id to the first in it and you even made the css code for it and said you would go back to the HTML code and add it later on, but I presume you forgot about that
( )Jeffrey Way December 11th
@Hjortur -
1) Okay. Thanks!
2) Oh yeah. I never noticed that the small tag didn’t show up in IE6. Sorry about that. I’m sure it’s a quick fix. I’ll take a look.
3) Good point. I got sidetracked. If anyone was following along, they simply need to return to their HTML and add the “first” class to the first anchor tag. I did that on my original, but got sidetracked when recording the screencast.
Thanks everybody for the comments/suggestions.
( )D2WebDesigns December 11th
I really like the new NetTuts video format.
( )Anyhow, excellent tut!
Is there any way to download and save your video tutorials? I love to use them as references.
Jason December 11th
Having this presented in a video format is great for visual learners. Though I know these steps, I love seeing new work flows that people use.
Thank you very much for taking the time to produce this tutorial, and a PLUS for having it be video!
( )ilias December 11th
Nice screencast!
I never thought of using web developer toolbar to actually code my entire css in it but it seems to be a good way of working.
Maybe next time you could do a screencast on optimizing code for IE cuz there don’t seem to be alot of resources regarding this topic.
Thanks.
( )Jeff Adams December 11th
Really enjoyed this screencast thanks very much - particularly liked you doing the CSS by hand and explaining it.
how about a basic tutorials on CSS layouts?
( )Patareco December 11th
Nice for learning more html and css. This is in fact a crucial step in webdesign
( )chad December 11th
what’s up with the Community Link Feed? I used to check it out often but it doesn’t seem to get updated much anymore.
( )Jeffrey Way December 11th
@Chad - Yeah, the system changed a bit. It’s easy to forget sometimes. I just updated it. I’ll do better from now on.
( )Kalid December 11th
Hi, just wanted to say thanks for taking for the screencast! I’ve been doing ad-hoc design on my own sites, and it was great seeing your techniques in action. Definitely learned new tricks about how to position background images, etc.
One tip which helps me — put a “border: 1px solid red” style when working on an element. That way it’s easy to look up and see which item is being pushed around by margins, padding, etc. Then you can delete it out afterwards.
Anyway, thanks again.
( )Jeffrey Way December 11th
@Kalid - Thanks so much.
In reference to your tip, I would recommend that you use a background color rather than a border. Sometimes, the simple addition of a 1px border can throw off your layout.
( )helaman December 11th
sweet deal
( )Alex December 11th
thanks!
( )Gustavo Scanferla December 11th
Thank you very much!
( )Chris B December 11th
Why are you still teaching people to set sizes in pixels? EVERYTHING should be set in ems.
( )Jeffrey Way December 11th
@Chris - That’s not necessarily true. I can tell you a few well known developers that prefer to use pixels.
( )Ewout Winkelman December 12th
@Jeffrey - That well known developers use pixels doesn’t make it better
I also use ems instead of pixels, because of text resizing in the browser and cross-browser compatibility. When pixels are used, some (older) browsers don’t support resizing.
( )Pachito86 December 12th
Great tut … really nice results
( )Mike Coyle December 12th
Thank you. Very useful. Nice presentation.
( )skinhate December 12th
direct link.. 104 mb.. enjoy ppl..
( )h–p://www.viddyou.com/get/49204.flv
Mike December 12th
Great Screencast. gave me a great perspective on going from PSD to Html. Keep upthe good work
( )Mike
Kurve Media
Simon December 13th
@chad
[quote=zamson]Thanks for this but I’m wondering when people are gonna start using Fireworks on a regular basis. I’m probably gonna sound like an Adobe sales man but Photoshop was never meant for web design.
Been using Fireworks for a long long time and strongly suggest people working a lot with web design mock-ups to check it out.[/quote]
( )Seems like I’m not the only one thinking this way. And you’re right, never use useless software ! But Fireworks isn’t useless. Have you ever tried to work on a whole project using only Fireworks (for designing, obviously) ? I already know the answer, because if you had, you wouldn’t be using Photoshop anymore
Takumi86 December 13th
Umm aren’t this have been posted before? because i think i have seen this like 2 - 3 times already
( )Shane December 13th
Your hard work is appreciated Jeff - fantastic screencast!
Thanks a lot.
( )MD December 13th
Great tut thnx
( )Blagoj December 13th
This was a great tut. What I learned is that I can use the web developer add-on for FF to code the CSS in real time. I am glad I spent almost an hour watching it.
Thanks Jeffrey.
( )Brian December 13th
Awesome! And yea - take your time. I could care less if the video was 3 hours long. If it helps me cut my web development time in half - I can wait all day.
Always fun to watch someone else’s flow. Good work and Thanks!
( )Codie Westphall December 13th
Woa, you make it look easier than I thought it was, now gotta go try it i spose, hopefully still easier than what i thought it would be
( )Chasby December 13th
great video! keep up the great work
( )AD December 14th
This was a great tutorial like everyone else said. Well most of everyone.
( )dev December 14th
Really good tutorial, help alot
( )eiff December 15th
Cool, Thanx.
P.S. The “Using a single layout to create several different looks” line has dissapeared in IE.
( )kman December 15th
Great tutorial. Keep up the good work. Thanks a ton.
( )Jeff Kwiat December 15th
I’ve always wanted to understand the process of PSD to HTML/CSS…this was a great help. Thanks!
Jeff
( )p.y. December 15th
something is wrong with ie 6 when you refresh it the text inside the tag are not visible but on the other the tutorial is truly a lot of help
( )it’s amazingly cool.
thanks
p.y. December 15th
sorry for that what i mean is the text inside the tag “small” are not visible
( )but like i’ve said before your tutorial is really cool, thanks and Godbless
Daniel December 17th
Very interesting - I’ve been looking for exactly this sort of resource to help me learn a bit more about css. Thanks
( )mcnuggets86 December 18th
excellent, great job of going into detail about i-explorer.
( )patrick riley December 18th
ya um or you could slice it and go to save for web and select images and html, under that you should set that to other than go to html in the second menu within the pop up and go to slices and instead of html table select generate CSS. AND BOOM YOURE DONE!!!
( )Jeffrey Way December 19th
@Patrick - Please don’t say that. Would you really be proud of the markup?
( )EdpeppeRs December 20th
great work for us newbie, jeff!
i’ll try it now..
thx a lot
peace
( )Jeremy December 20th
This was great! As someone who has just started learning this stuff, this was extremely helpful. Thank you!
( )Inayat Meera December 21st
Very nice and helpful, helps me a lot.Thank you very much keep it going
( )Jorge December 21st
Clean, that’s the word, simply perfect, keep it up please! I’ve really enjoyed this one!
( )Dere December 21st
Great tutorial.
Maybe someone could do a similar tutorial using GIMP. I would love to have some transitional tuts because not everyone can afford the full-blown Photoshop.
Maybe I am just a minority on this site, though….=)
( )Allison Rose December 22nd
Awesome awesome tutorial. Thanks so much!
Will this be available for download soon?
Thanks again!!
( )Darkjouse December 22nd
Very good tutorial!
Very good tutorial!
Just a comment , you forgot to fix the tag in IE 6. It not appear.
( )Britton Nemecek December 23rd
Awesome tut! Very informative. Thank you.
( )Jayjay December 24th
Great! Thanks Jeffrey.
( )Catsh December 25th
Very nice tutorial! and beautiful site too!
( )Thanks a lot!
Maple1249 December 26th
This really helped me out - thank you so much! Great site with numerous tutorials and whatnot.
VERY HELPFUL! Thank you!
( )Nash December 27th
Jeffrey,
Awesome!!!
Quick and clear, in and out.
Thanks for sharing, it will make the web a bit better again!
( )whiskeyfrances December 27th
I learned today some stuff i had to assume lol… Great tutorial THANKS!
( )Kaba December 28th
You are a very good teacher.,
I have to say, i saw your first slice to xhtml tuto and this one, and im having no trouble at all .. i learn a lot from you.,
Thanks.,
( )MikeB December 31st
An excellent tutorial!
( )Derek Vigil December 31st
I enjoyed the video! I have random question. When is it considered best practice to use ems over px when it comes to margins, paddings, line-heights, fonts, etcs?
( )Carl - Founder January 3rd
A really great tutorial and very useful. I really like how your work flow flows
( )j January 3rd
Great tut. answered a lot of questions I had..
( )cheers
hjalmar January 4th
Great video, learned alot from it!
( )Steve Mansell January 5th
This was a great tutorial, a lot of helpful tips, especially that png fix - oh how I hate IE6. It’s always interesting seeing how other devs work
( )Seth January 5th
this one was fantastic.
( )i saw the first psd to html tutorial today and couldnt help myself and saw this one as well.
Tracey January 6th
Jeffrey, this was a fantastic tutorial. I learnt more from it than 6 months of design college! To be kind, the course probably gave me the grounding to understand what you talking about.
Anyway, could you please do a tutorial on the Mootools accordian plug-in. I’m not technical so I’m finding it really difficult to understand how to use it, despite numerous searches.
Thank you for such a great site!
( )Tracey
Josh January 6th
Awesome tutorial with lots of great info, Jeffrey!
One suggestion I would make, however, is a practice I’ve adapted; using a font-size of 62.5% in the body selector, then setting all font-size and line-heights in em. By doing this, you’re essentially setting them in pixels, except the text will actually scale properly in all browsers.
Thanks!
( )lacie January 7th
Got a question:
( )When you use float:left, dont you have to insert a float:none or clear:both to display it correctly?
Adrián January 7th
useful tutorial, thanks mate!,, from méxico
( )Marcin January 8th
Great tut. Its good to see someone’s ealse workflow ;).
( )joomla template January 9th
this is amazing. good work jeff. we are waiting other great tutorials from you…
( )Gunnar Bruun January 9th
Tip for copying lines in Aptana:
( )Keep the marker on the line you want to copy, hold in alt+ctrl and hit up or down arrow, depending if you want the new line above or below.
mvarela January 9th
Just great!
( )Maxi January 10th
WOW very COOOL
good work man
( )Maxi January 10th
Make a tutorial how to make a panel of administration of a site
( ),ar fi foarte frumos,Thanks so much
MrClean January 11th
Awesome tutorial!
( )saki January 11th
Practically after i saw the tutorial i had the experience of designing it It was a great & very very helpful experience thanks a million!!!!
( )Andrea Osborn January 13th
Awesome Tut
( )Andrew January 16th
Great skill !!! awesome works!
( )chandana January 19th
Useful tutorial
( )Max January 19th
Nice one.
( )sivas January 22nd
Great, Thanks…
( )Christian January 22nd
Thank you so much!
( )Student in Mr. Ireland's class January 22nd
Great video. Easy to follow tips!
( )Chris January 28th
Can this method be used when making a theme or template for Wordpress?
Nice tuts by the way.
Chris
( )David | WebModia January 28th
@Chris - yes absolutely you could use the same method for a WordPress theme. But this would only be part of the larger process.
Once you have your design all sliced up into valid XHTML/CSS templates, you would then need to break that XHTML into the respective WordPress template files. This includes replacing chunks of code with php-based WordPress template tags (overly simplified but that’s the gist of it).
You can find lots of tuts online for doing this… perhaps right here on nettuts (Jeffrey?). Of course, the WordPress.org codex has lots of info, too.
( )Pearsman Bros January 29th
Love the tut!
( )But why doesn’t my img show , ref. to your tag html {background: url(images/bgImg.jpg) }. Aren’t you supposed to specify the tag to background-image, in order to make the “magic” appear? I can’t seemed to make it happen.
neuepixel January 29th
Danke für dieses tolle Videotutorial!
Super verständlich und interessant gemacht.
Danke!
( )ethan January 31st
thanks for this nice tutorial ^^ I really enjoyed it.
( )我很费解 February 3rd
太牛了 呵呵 厉害
( )Matt February 4th
That was extremely helpful. I never thought of building pages CSS in browser before. You were extremely thorough and helpful. I look forward to customizing this design myself!
( )Manny February 6th
Nice job man. This is VERY helpful to beginners. Helped me loads. Thanks!
( )GFX February 8th
Hey, its really nice!
but huge size, my internet speed would not allow me to watch this tutorial again and again.
From where and how can i download this tutorial?
its downloaded in my cache but there is nothing in my cache! (using Firefox)
Please help me to download this tutorial, so that i use it for my practice!
Waiting for reply!
( )GFX
Roshan February 9th
its nice
( )Roshan February 9th
ITS NICE ONE
( )choyaks February 9th
you forgot the a.selected class?
btw nice tut!
( )WILL February 10th
nice tutts, detail and aplicable.
( )thanks pal.
marcelo February 15th
excellent tutorial, but recently I am learning and I do not like the images in the psd: aboutHeading.png, clear.gif, mainBG.png, yourLogoHeading.png.
( )Thank you.
futbol videolari February 17th
very cool, thanks
( )Nykeri February 17th
nice screencast u taught some stuff about adding hacks to compensate for IE nice
( )Aydan Tam February 17th
Wow, this tutorial was nice and easy to understand.
( )Nik February 25th
Very nice !
( )Wisam February 26th
I made a similar PSD comp and tried to code it but it turned out sloppy.
I used a lot of margin tags to position the images.
There has to be a better way to position the images?
Can someone have a look at my code and let me know where I went wrong?
wisam dot ca /indextest.html
( )Wisam February 26th
email me at: help at wisam.ca
Any help is much appreciated!
( )xhtml design March 5th
Wow! Very good example!
You have a talent to make things easy for understanding
Create job.
( )Tim March 15th
No one covers the simple stuff like this. And to see the nuts and bolts of how day to day websites are built. AND how people can do it on their own and implement it to their own sites. fantastic job.
Thanks.
Tim
( )Provsten March 17th
Awesome!
But you forgot one small thing. The simple “selected” feature, where the anchor tag you select, gets bold, so you know what page you are on.
You said you were gonna add this to your html, but I guess you forgot.
Otherwise great screencast - helped me a lot!
( )Nota Bene Consulting March 26th
54 minutes well spent! I am a regular user over at themeforest and found my way over here. Now I can do something with the psd files too!
Dugg, Stumbled and Subscribed.
Cheers
( )Dwight March 28th
Very informative, thanks a lot
( )puur March 29th
very nice tutorial i really learnt more about css design. btw a hard cut at the end
( )Jesper April 8th
Thats a genious tutorial Jeffrey !! I thought it was very very helpful, especially for me, who has only been designing and coding for about a month. I would really love to see more tutorials like that one.
( )barkod April 8th
@Patrick - Please don’t say that. Would you really be proud of the markup?
( )Daily Designs April 11th
I have learned a lot here, I wanted to code my simple website, well atleast code it simply, and still have some problems but my friend wanted to code it with me so now I did a lot of work. Thank you very much!
( )Paul April 18th
Although I do this type of thing every day, it is still nice to watch someone else’s methods.
Took me back to when I first started out.
( )Adam Winogrodzki April 19th
Well a Simple and great way to do the thing ! thanks
( )anon April 21st
For the css part:
#container {
margin: auto;
width: 921px
text-align: left;
when I enter this it has no effect what so ever. What mistake could i have made on the main html? as it dosn’t recognise and “#container/header {” statements.
many thanks.
( )AfroSamurai April 23rd
Hey Jeffrey,
Just wanted to say thanks heaps for your work and it actually did made me get registered with Tuts+ site. So keep up the good work and looking forward to more of these sort of tuts.
Cheers
( )huwaw69 April 23rd
So many comments… This is really a good beginners tutorial…
( )Casper May 1st
that is a great attempt for all designers, i really like this and requesting to you for stuff like this…
Thanks
( )Casper
Al May 5th
The video is not playing…
( )ab May 13th
nice keep up the good work its really good for me as a beginner
( )Smog May 15th
There’s some disagreement among SEO firms about whether the H1 should be your logo or the actual title of the page. FYI.
( )Design freak May 19th
i absolutely love your tuts
thanks a lot
( )Daniel G. May 19th
I’m curious, when you first started web developing how long did it take you to finish a psd to html website?
( )Daniel G. May 20th
I didn’t enjoy it:/ I freaking Loved it!!
( )escme May 24th
Thanks for the really nice tute!
Quick question:
How would you go about reusing common areas across different pages (such as the header, nav, footer)?
I come from a programming background so modularity and reusability is really important. If I was to just duplicate the main page and modify its content, that feels very counter-intuitive and will likely cause problems when I have to change one of these common areas.
I know you could do this with frames but apparently they’re bad news nowadays so what is the best way to go about this?
( )fernando May 25th
WOW Really helpful!!
( )muchas gracias saludos desde Aguascalientes, Mexico
Fahim Akhter May 29th
Loved it! Really simple and the best things are the IE hacks
( )Mario June 15th
Great explanation, simply great, a lot of helpful tips and information! Yet, keeping it simple and straightforward.
( )Jessezhan June 16th
Good ! I like it, very nice!
( )