Jump to content

Website Template


Steven

Recommended Posts

I usually get pretty frustrated when starting a new project or going back to an old one, because I'm either trying to remember what I did and what tricks I used or I have a hard time getting started. So today I took the layout that I usually end up working with and turned it into a very simple and clean template. I'm sharing this with all of you more than looking for a bunch of critiques, but they of course are always welcome!You can find it online here: http://ngaguild.com/steve/sites/templates/...nnihilator.htmlCSS sheets: http://ngaguild.com/steve/sites/templates/...ilatorsheet.css, http://ngaguild.com/steve/sites/templates/...lator/reset.cssThis template is fully XHTML and CSS valid.Okay, so what this template is:

  • 100% vertical height cross-browser with valid CSS
  • fixed-width page that is centered in the middle
  • no images, just background colors to help you see what's on the page -- easily customizable
  • sticky footer that stays docked on the bottom of the page cross-browser

There aren't many comments in the XHTML and CSS yet, but you can still have fun with it.Here's an example of the template with a make-over: http://ngaguild.com/steve/sites/wgmIf you have any questions about the code just ask away!

Link to comment
Share on other sites

It's nice. But I notice you're using an XHTML Transitional doctype.XHTML is not superior to HTML, it is just different in a few ways.A page in HTML Strict is more likely to appear correctly on all browsers than a page in XHTML Transitional. That's just an example, but you could use an XHTML Strixt doctype if you prefer.The problem with XHTML these days is that it's being served as HTML anyways (Look at the page information from Firefox's tools). If you served it as real XHTML, Internet Explorer wouldn't be able to read the file and it would try to download it instead.

Link to comment
Share on other sites

But I notice you're using an XHTML Transitional doctype.XHTML is not superior to HTML, it is just different in a few ways.
To be honest, the doctype in there is the one that Dreamweaver spews out by default. I don't pay attention to it, but I probably should! Someone once recommended that I use strict over transitional, but never mentioned html vs xhtml.
Loving the colors.
It's some theme I got from http://kuler.adobe.com. Great website for browsing color schemes!
Link to comment
Share on other sites

Someone once recommended that I use strict over transitional, but never mentioned html vs xhtml.
Neither of the two are better, but currently there's more support for HTML than for XHTML (Thanks, Internet Explorer).More likely than not, your document is being served as HTML on most browsers. To send it as real XHTML, you could use a .xhtml extension and assign the "application/xml+xhtml" MIME type to the .xhtml extension in your .htaccess file.Either way, don't worry about it, you can leave it as XHTML. Often I hear people say they use XHTML because it's "more correct" or "better" than HTML, but they need to get their facts straight. The advantages of XHTML only come when using XML technologies.
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...