www.webdeveloper.com
Results 1 to 2 of 2

Thread: [RESOLVED] HTML5 and DIV CSS Border Not Displaying?

  1. #1
    Join Date
    May 2010
    Posts
    35

    resolved [RESOLVED] HTML5 and DIV CSS Border Not Displaying?

    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:
    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>
    All Code:
    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 :: &copy; 2006 :: All Rights Reserved
    </div>
    
    <table align="right"><tr><td align="right">
    <br/>
    </td></tr></table>
    
    </body>
    </html>
    Last edited by objNoob; 11-23-2010 at 11:05 AM. Reason: [SOLVED]

  2. #2
    Join Date
    May 2010
    Posts
    35
    Need # to define Hex color properly.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles