Results 1 to 5 of 5
Jul 11, 2006, 20:57 #1
Code above DOCTYPE causing a problem
I have a page that has some Cold Fusion code (cfmail tag specifically) above the DOCTYPE. I have done this on many occasions before and it works fine. The code works, but for some reason in IE it shifts the page left, when it should be centered, and no calculation results show up. In FireFox it works great, no problem.
Here is the form that you need to fill out first to get see the problem. Once you press, "Calculate" you go to a results page, this is where the problem is.
Would love some help on this one. It is all I left on a site and I can not seem to get this working correctly and it is driving me crazy.
Jul 11, 2006, 21:19 #2
If you have not had the problem before then you were just lucky. If anything at all is placed before the doctype, IE goes into quirks mode and there is no way around this.
Jul 11, 2006, 22:20 #3
I think Above DOCTYPE is BEFORE. Just another way of saying it.
My code looks like this:
<cfmail from= "#EmailAddress#" to="#EmailAddress#" bcc="firstname.lastname@example.org" subject="Texas Move PRO QUOTE" server="localhost" type="HTML"> <CFPARAM NAME="mileage" DEFAULT="0"> <CFPARAM NAME="form.do_elevator" DEFAULT="No"> . . . </table></td> </tr> </table> <div style="font-weight:bold; font-size:9px; width:660px; text-align:center;">*All online quotes are approximations. Contact Texas Move PRO @ 214-528-9200 for exact pricing and scheduling. <br> <span style="font-size:12px; font-weight:bold;">QuoteTotal $ #Total#</span></div> <p>Additional Comments:<br> #textarea# </p> </cfmail> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> . . .
Jul 11, 2006, 22:40 #4
- Join Date
- Jul 2005
- At my computer
- 0 Post(s)
- 0 Thread(s)
Jul 11, 2006, 22:44 #5
Well, As per some instructions I read a while back, the CFMAIL (ColdFusion) tag has to go before the DOCKTYPE. It is not actually part of the web page.