I'm using PHP's DOMDocument to insert some DIV elements into HTML. I'm having trouble getting the DIV's border set using Style Attribute to display when the document type is <!doctype html>. When I delete that declaration the border appears.
Any Ideas? Thanks
Code in Question:
All Code:Code:<div id="aaf_insert" style="border: 5px solid ff0000; width:100%"> <div style="float:left"><img src="./images/stop.jpg"></div> <div> <h2>Application Terminated</h2>Unexpected or Unknown CfMC Page! Please report this page to your **** immediately.<br>Expecting Page: Start Quit Prompt or Known Login Error</div> </div>
Code:<!DOCTYPE html> <html> <head> <title>****</title> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"> </head> <body> <div id="aaf_insert" style="border: 5px solid ff0000; width:100%"> <div style="float:left"><img src="./images/stop.jpg"></div> <div> <h2>Application Terminated</h2>Unexpected or Unknown CfMC Page! Please report this page to your **** immediately.<br>Expecting Page: Start Quit Prompt or Known Login Error</div> </div> <form name="statbar"> <input type="hidden" name="statbar_perc" value="@statusbar~" /> </form> <div id="topblock" class="topblock_class"></div> <form name="asdasd" id="asdasd" method="POST" action="dothis.cgi"> <br><br><br clear="all"><br><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"><tr> <td align="center" width="20%"> <input type="submit" name="Next.x" id="Next.x" value=" Next "> </td> </tr></table> <br clear="all"><br></form> </div> <div id="lfooter"> </div> <div id="rfooter"> Powered by CfMC :: © 2006 :: All Rights Reserved </div> <table align="right"><tr><td align="right"> <br/> </td></tr></table> </body> </html>


Reply With Quote
Bookmarks