Welcome to WebmasterWorld, steveoh!
Seems like this was asked recently? A brief sample of code would probably be helpful.
Kudos for desiring a valid doctype. Again, a brief code sample would help.