html - Setting DOCTYPE With Server-Side Javascript -


i have real quick question. want set doctype html page need using server side javascript. every answer see on site says "i don't see why want it" never answers question (that find... please point me in direction of post if wrong).

the reason needs done because technically being sent html email. using exacttarget , won't allow me type above starting < html > tag. if try establish doctype after it, gets removed.

now have access server side javascript before email renders. need set doctype because trying set < td > tags "display:block" , not work default doctype. need write script after opening < html > tag set doctype page (email).

i wish use following doctype if unwise feel free advise:

 <!doctype html > 

also here css not working current doctype:

 @media screen , (max-width: 660px) {       td {display:block !important;}   } 

here html:

 <table bgcolor="#0033cc" width="100%" border="0" cellspacing="0" cellpadding="0">       <tr>            <td>top content</td>       </tr>       <tr>            <td>bottom content</td>       </tr>  </table> 

when server side javascript here syntax:

<script type="text/javascript" runat="server">   *** script *** </script> 

if exacttarget won't let output prior starting <html> tag, can't this. doctype has come before that.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -