Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6028275
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T04:42:52+00:00 2026-05-23T04:42:52+00:00

I use Dreamweaver to develop Web sites. I use the templates feature extensively as

  • 0

I use Dreamweaver to develop Web sites. I use the templates feature extensively as it helps to make things easier maintaining conformance.

However, I notice that Dreamweaver adds the following code before the doctype:

<!-- InstanceBegin template="/templates/web-public-user-home.dwt" codeOutsideHTMLIsLocked="false" -->

This is throwing my IE into Quirks mode for obvious reasons (i.e. comment before the doctype). Is there a way of dealing with this?! Below is my doctype.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Regards,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T04:42:53+00:00Added an answer on May 23, 2026 at 4:42 am

    Ok, I figured this out.

    Because of the extensive IE-compliance tweaking I’m doing, I was using conditional comments. However, I was using them on the html tag. There’s nothing wrong with this in principle but Dreamweaver won’t handle your live template updates properly when you do this (It will place the Dreamweaver-specific template lock code first before the doctype, thereby ensuring that your pages will throw Quirks mode in IE).

    So what I did was move my conditional comment system away from the html tag, instead using them immediately after your opening body tag and immediately before your closing body tag like so:

    <body>
    <!--[if IE 6 ]> <div id="ie" class="ie6"> <![endif]-->
    <!--[if IE 7 ]> <div id="ie" class="ie7"> <![endif]-->
    <!--[if IE 8 ]> <div id="ie" class="ie8"> <![endif]-->
    <!--[if gt IE 8 ]> <div id="ie"> <![endif]-->
    <!--[if !IE]><div id="not-ie"> <![endif]-->
    
    {YOUR HTML CODE}
    
      </div>
    </body>
    

    This way, Dreamweaver places the doctype and html tag before the template lock code, and your resulting pages will appear in standards mode on IE (all things being normal).

    Cheers.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone here use Dreamweaver for Struts development? I've been working on a web
In my web/PHP development I use DreamWeaver CS5.5 as my IDE, TortoseSVN as SVN
I use Dreamweaver heavily for modifying Liferay templates (Velocity files), and then have to
I always used to use Dreamweaver for web work, but now I work in
I use dreamweaver on my laptop and the words are too small. Is there
i have noticed that every area has some tools you can use to make
I am trying to use Dreamweaver to build a Lyrics database website. I have
I use Adobe Dreamweaver CS5 to code websites, are there any syntax checkers that
Need your suggestion on php/mysql software. I develop PHP websites using Dreamweaver, I also
which is better to use: embed or audio tag? I'm using Adobe Dreamweaver CS5.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.