From PSD to XHTML
videos

How to Convert a PSD to XHTML

I continue to be amazed by how well Collis’s “Build a Sleek Portfolio Site From Scratch” tutorial continues to perform. It’s been months, yet it still posts strong numbers every week. Considering that fact, I decided to create a screencast that shows you exactly how to convert a PSD into perfect XHTML/CSS.

Part 1: Slicing the PSD and Creating the XHTML

Part 2: CSS

I won’t lie to you. This video is a bit boring. It just isn’t fun to watch someone enter margin values for thirty minutes. :) But it’s essential.

Part 3: Implementing a Bit of Javascript

Part 4: Kicking IE6′s Butt

Could we really call ourselves web developers if we didn’t have to fight with IE6? And is it a coincidence that “6″ is also the number associated with the devil? Who knows.

Mostly, the site looks just fine in IE6, but we should change a few quirks. Create a new stylesheet and call it “ie6.css”. Place it in your CSS folder. Then paste in the following.

#container #mainContent #tier2
{
	margin-bottom: 273px !important;
}

#tier3 #news
{
	position: relative;
	left: .56em;
}

#header
{
height: 158px;
}

#header #login
{
	top: 1em;
	right: 1.5em;
}

There’s nothing that we really need to go over. Mostly, I’m adjusting the positioning of a few elements.

The last step is to reference our new stylesheet in the head tag of our document.

    <!--[if lt IE 7]>
        <link rel="stylesheet" type="text/css" href="css/ie6.css" />
    <![endif]-->

The PSD

The PSD

The Website: 100% XHTML and CSS

The PSD

I hope this helped you. Everyone has their own way of doing things; So I’d be interested to hear your thoughts. This tutorial was a huge undertaking. I’d appreciate a Digg if you found it to be beneficial.

  • Subscribe to the NETTUTS RSS Feed for more daily web development tuts and articles.


Add Comment

Discussion 398 Comments

Comment Page 8 of 8 1 ... 6 7 8
  1. Faysal says:

    Really it helps me a lot. Thank you very much.

  2. There is a step by step procedure to convert PSD into perfect XHTML/CSS. THe first step is creating a design in Photoshop and then coding the site with XHTML and CSS. You have elaborated these steps in the right manner.

  3. ibrar says:

    I need the PSD from which you are converting it to xhtml

    thanks

  4. Kirti says:

    Hi Jeffrey, your video tutorials are always very good to learn in professional way, Thanks a lot…

  5. saeed m says:

    hi jeffrey ,you are greate ! this is a so good tutorial .
    but jeffrey if you speak a bit slower its better for no native english mans such me !
    i like your learnings but your speaking is very fast and i dont realize some times .
    regards

  6. Pedro Silva says:

    Hi, if you are searching for a excellent PSD TO XHTML service, you may use, http://www.psdconverted.com, they have an excellent service that you way wanna use, plus, they are fast service and cheap!
    Best Regards
    Pedro

  7. Chris M. says:

    Hey Jeffery… Thanks for another great tutorial!

    You know that issue you were having with the list item (li) at about 11 mins and 22 seconds (and after) in the CSS video? Well, I think it was the comma for the rule that you had above the one you were trying to delete. That’s why it wasn’t working, the comma was “blocking” the rule from applying. I didn’t test it, but I think that’s what it was. Your thoughts?

    Thanks again!

    Sincerely,
    Chris

  8. Will says:

    After i convert to html, i notice that the slice of the Background image repeats but not properly,how do i fix this? and how do i have to center the psd design in the html?

  9. Great tutorial.. Very impressed with your work.. Leaned so much..

  10. Eric says:

    Awesome. Thank you very much for these tutorials.

  11. XuDing says:

    Thank you so much for this tutorial.

    It does not only showed us how to do a PSD to HTML slicing, but also introduced some very useful developer tools, such as web developer firebug plugin.

  12. Fahim says:

    Thank you , this really helped to develop the concept of converting psd to xhtml.

    God bless you .

    regards
    Fahim

  13. Maliha says:

    These videos are really great, Thanks a lot for explaining in step by step… It is very usefull to us.

    Your great work is much appreciated.

  14. tjahyo says:

    is very cool,
    thak’s for you tutorial.
    is the best

  15. 单身贵镞 says:

    Part 1 ,Part 2 ,Part 3的图片都看不到,其他的可以看到,不应该是加载问题啊

  16. Chan says:

    I’m so appreciative of this!!! working on nuaconcepts.com and would like to personalize this basis the above.
    Have you any tutorials on creating the PSD template itself?

  17. Very good tutorial…Thanks a lot.

  18. Vivan Orozco says:

    I don’t even understand how I stopped up right here, however I assumed this put up used to be good. I don’t recognise who you’re but definitely you are going to a well-known blogger if you happen to are not already ;) Cheers!

  19. jack mam says:

    thanks for your providing this passage
    i wanna say that that i didnt know how to convert psd to html thank you again

  20. Andrew says:

    I was having issues with the warm & cheerfull web design tut as that had no link to the PSD file. I decided to try this one and the link to the PSD file is broken hmmm really confused on whats going on here.

  21. Andrew says:

    Were is the PSD file to slice lol

  22. Gary Harding says:

    still can’t download the source files. DNS error. thank you

  23. Dayan says:

    Great tutorial, But I need the psd so I could practice your great tutorial according to psd. Please provide the psd, this is the missing of this tutorial. It could be useless without providing the psd. Thanks

  24. eric says:

    Great tutorial! watching the process from beginning to end is exactly what i needed. After years of avoiding css because it just looked to complex, this very straight-forward step by step made me realize the only thing I’ve been missing is a little bit of patience!

    Thanks again.

  25. Martin says:

    That was alot easier than I expected it to be, great tutorial!

    I used Paint.NET to edit my PSD files, and then optimized them for the web. It looks great on the new CSS3 browsers.

  26. Thank you so much for this tut!

  27. Gareth Hardy says:

    Great in depth screen cast, thanks for sharing!

  28. nonStopCars says:

    Thanks for the tutorial, we applied design services at the company website. But the result was not as expected, I was wrong in a certain step.

  29. xhtml-design says:

    Great tutorial! Works great!

    Thanks very much! :D

  30. Abdul says:

    its useless showing half a tutorial, i know everyone has their own way coding but for those of us who are just picking up, its not worth it.

  31. For me 2nd video is slightly difficult. I always face problems in css. I use dream viewer instead of visual studio. I have never tried visual studio. Please let me know which is easier to use.

Comment Page 8 of 8 1 ... 6 7 8

Add a Comment

To add a code snippet to your comment, please wrap your code like so: <pre name="code" class="html">YOUR CODE</pre>. You can replace the class name with "js," "css," "sql," or "php." If there are any "<" or ">" within your code, please search and replace them with: &lt; and &gt; respectively.