html - <br> elements being added into <div> as viewed in source -
there no br tags in below code between beginning of div tag , table tag in source several br elements appear.
here code in .php file.
<div id='tx_addaccountpopup_frame' style = "height: 100px" class='txpopupframe'> <table class="addnewtable" id = "table" > <tr><td align="left" class="spaceunder"><label for='clearingaccount'>clearing acct</label></td><td align = "right" class="spaceunder"><input type = "text" id = "clearingaccount" class="txaddnewfield"></td></tr><br> <tr><td align="left" class="spaceunder"><label for='tposalloc'>tpos alloc</label></td><td align = "right" class="spaceunder"><input type = "text" id = "tposalloc" style="text-transform: uppercase" class="txaddnewfield"></td></tr><br> <tr><td align="left" class="spaceunder"><label for='tposportfolio'>tpos portfolio</label></td><td align = "right" class="spaceunder"><input type = "text" id = "tposportfolio" style="text-transform: uppercase" class="txaddnewfield"></td></tr><br> <tr><td align="left" class="spaceunder"><label for='tposgroup'>tpos group</label></td><td align = "right" class="spaceunder"><input type = "text" id = "tposgroup" style="text-transform: uppercase" class="txaddnewfield"></td></tr><br> <tr><td align="left" class="spaceunder"><label for='servercode'>server code</label></td><td align = "right" class="spaceunder"><input type = "text" id = "servercode" class="txaddnewfield"></td></tr><br> <tr><td align="left" class="spaceunder"><label for='clearingfirm'>clearing firm</label></td><td align = "right" class="spaceunder"><select id = "clearingfirm" style="text-transform: uppercase" class="txaddnewfield"></td></tr><br> <tr><td align="left" class="spaceunder"><label for='vtk'>vtk</label></td><td align = "right" class="spaceunder"><input type = "text" id = "vtk" class="txaddnewfield"></td></tr><br> <tr><td align="left" class="spaceunder"><label for='clearingallocaccount'>clearing alloc</label></td><td align = "right" class="spaceunder"><input type = "text" id = "clearingallocaccount" style="text-transform: uppercase" class="txaddnewfield"></td></tr><br> <tr><td align="left" class="spaceunder"><label for='portfoliodesc'>portfolio desc</label></td><td align = "right" class="spaceunder"><input type = "text" id = "portfoliodesc" class="txaddnewfield"></td></tr><br> <tr><td align="left" class="spaceunder"><label for='groupdescription'>group desc</label></td><td align = "right" class="spaceunder"><input type = "text" id = "groupdescription" class="txaddnewfield"></td></tr><br> <tr><td align="left" class="spaceunder"><label for='masterdescription'>master desc</label></td><td align = "right" class="spaceunder"><input type = "text" id = "masterdescription" class="txaddnewfield"></td></tr><br> </table> <button id = "submitnewaccount" onclick ="txsubmitnewaccount()"class = "txdefender_permissionaddrecordbutton" type = "button" width ="100" height="30">submit</button> </div>
here source appears in google chrom dev tools, can see br tags added in:
<div id="tx_adduserpopup_frame" class="txpopupframe"> <br><br><br><br><br><br><table class="addnewtable" id="table" cellspacing="10"> </table> <button id="submitnewuser" onclick="txsubmitnewuser()" class="txdefender_permissionaddrecordbutton" type="button" width="100" height="30">submit</button> </div>
what can cause happen? how fix or prevent it?
in php have <br>
@ every end of lines in <table>
, syntactically , semantically wrong. chrome tries fix valid code , moves <br>
s top. delete these wrong <br>
s , it'll fine.
... <tr><td align="left" class="spaceunder">[...]</td></tr><br> ^-- cannot go here, remove ...
Comments
Post a Comment