DivitoDesign

Everything for the Web Professional

Building HTML/CSS Sites: Use a Template

Information about the Author:

Name:

URL: http://twitter.com/divitodesign

Description enjoy design, write articles, like typography, love football, keep chilling.

More on: CSS

59 Comments

  1. Idealien says:

    A well written article. The only suggestion I’d make is that the amount of text you use for dividing the css sections is rather large. I tend to use something in the form of

    /* ===BASICS */

    so that I can search for ===BASICS or whatever section I want to jump to.

  2. Snoupix says:

    Thanks ! very useful.

  3. Great article!
    Important for production time.

  4. [...] Building HTML/CSS Sites: Use a Template » DivitoDesign Using TEMPLATE for HTML/CSS – Good read (tags: design webdev css template howto) [...]

  5. I’ve been wanting to create a template like you outlined here but somehow I often rely on copying and pasting files and folders from the original project I built. hahaha.

    Your article is a motivation for me to once and for all create a master template or maybe download yours coz I’m tooooo lazy! hahaha.

    Thank you for sharing this one!

  6. Arun Kumar says:

    Many Thanks Stefan !!

    Indeed a very well written article, and I agree with Idealien, as it will be short and less KB too.
    PS: I have been following your website since 2 weeks or so and I must say the quality of article is top notch ! Your website is very less cluttered and it loads very fast, compared to others I follow for my web designing needs.
    Cheers !

  7. whiskey says:

    Just for a good measure, SWFObject should be there too, and SIFR… That way you can easily delete whatever JS call you don’t need.

  8. jitendra vyas says:

    What does the search form fix?

    and i suggest DD_belatedPNG for png.

  9. [...] Ir al Sitio Tags: CSS, Diseño, HTML Diseño [...]

  10. viktor says:

    i use this since 2006:)

  11. Good post!

    Very useful

  12. If you really want to create a decent template (even for static sites) I’d suggest using PHP to include headers and sub content etc. Plus PHP can bring other benefits: http://csswizardry.com/toybox/let-php-do-the-mundane/

  13. That’s step #2 Harry. No one … (that i know of) begins with having it all split up. It makes no sense and is much harder to work with.

    Photoshop > XHTML + CSS > PHP/ASPX. :)

  14. Tibor says:

    Good idea and nice set up!

    I always prefer to set the default font-size to 62.5%, which makes it easier to use EM for font-sizes; this way 1em=10px, 1.1 em=11px etc.

  15. el Cabanaz says:

    Ah this is helpfull! Thnx a lot!

  16. @Tibor – That’s right. Do it as well!

    @Harry Roberts – I agree with @Tommie. I think it’s much harder to work with header.php, footer.php etc. That way you have to switch between them all the time if you want to edit something. Irritating. I am just splitting up everything after I am done with the structure.

    @jitendra – Will explain that later.

    @Idealien – Also possible. In my own experience, I can find my stuff better this way, but your way is fine as well. You can always throw your CSS codes through a CSS Compressor, right? :)

  17. Eric says:

    Very helpful website and really just what I needed to read. This is definitely the type of time saving technique I need to employ!

  18. CyberFox says:

    Very Helpful!
    Many Thanks.

  19. Raul says:

    excellent post

  20. Evan says:

    One other thing I do that seems to be becoming more and more common practice, is to include jQuery using the Google Ajax Library API. That way, the jQuery file may already be cached from another site the user may have visited.

  21. [...] Building HTML/CSS Sites: Use a Template » DivitoDesign (tags: howto framework development productivity resources business css guide code design tricks webdev webdevelopment webdesign web information tips tutorials xhtml template reference tools documentation tutorial templates html forbusiness) [...]

  22. [...] Building HTML/CSS Sites: Use a Template html?css?????????? [...]

  23. Jos Hirth says:

    Add a red exclamation mark favicon. This way you won’t forget to add one. ;)

  24. flipweb says:

    Thanks for this useful post

    Team Flipweb

  25. Bill says:

    Another similar framework would be the Yahoo UI library. I have been using their standard reset-fonts-grid.css and base.css as the first two css files in all my projects. The reset is obviously for resetting everything, similar to Eric Meyer’s file. The ‘fonts’ fixes browser compatibility issues for the font sizes, and the ‘grids’ frameworks makes creating many different versions of standard layouts – from 800px wide -> fluid, along with multiple sidebars, grids, etc. Very nice alternative, IMO.

  26. anna marie says:

    Hi..
    Indeed a very well written article and like the way it has been portrayed.In all great article.keep up the good work.
    Thanks..
    Anna

  27. Kris says:

    Thanks for the great post !

  28. [...] Building HTML/CSS Sites: Use a Template » DivitoDesign (tags: webdev tools tutorial css layout xhtml template framework) [...]

  29. [...] Building HTML/CSS Sites: Use a Template [...]

  30. Thank you very much! Very helpfull! Hello from Moscow! :)

  31. Abhisek says:

    What an article! Can’t help bookmarking!

  32. jitendra vyas says:

    html { font-size:100%; min-height:101%; }

    why u add min-height:101% in custom.css. what is the use of this?

  33. Birkenstock says:

    Great article. personally i allways use templates for my work. psd template. html/css temapltes and so on..

  34. [...] CSS Frameworks & Templates came around, some layout problems have been fixed, but definitely not all. These problems can [...]

  35. Gladior says:

    Templates do work, but. Just don’t make the mistake just to color your template and call it a design. Designing a website is something you must do from scratch. If a template helps you realise yor design faster, then it’s a great template.

  36. gina michel says:

    Nice and informative site. Keep up the good work.

  37. sean potter says:

    i read every single of your post sometimes i read it over and over again ..you really inspired many people here..wish you a good luck in everything you do..

  38. Thanks!
    I will try it in my next web design project.

  39. Bill says:

    Thank you so much for posting this. This gives me some ideas on how to create my own CSS-website.

Please Respond and Give your Opinion

We use Gravatar to handle our avatars. Get one there!