Below is my HTML code, I need your help to solve 2 issues,
- I need to remove a
tablefrom code and make it tableless. - Best way to render this code using template & jQuery AJAX, here data comes from XML file.
Running Code : http://jsfiddle.net/samansari/ppu6T/
XML Data:
$(function() {
$.ajax({
type: "POST",
url: "/echo/xml/",
dataType: "xml",
data: {
xml: "<data caption='Start Processes'><heading caption='Customer Registration'><info caption='Credit note approval' desc='Credit Note request form and approval process.'/></heading><heading caption='Installation'><info caption='Credit note approval' desc='Credit Note request form and approval process..'/><info caption='Credit And Rebill Note (smartforms)' desc='Generate and Process a Letter of Guarantee for the customer.'/></heading></data>>"
},
success: function(xml) {
console.log(xml);
}
});
});
HTML Code:
<div id="navcontainer">
<ul>
<li>
<div class="gtpointer"><span>    Start Processes</span> </div>
<ul>
<li>
<span> <span class="gtpointer">Customer Registration</span> </span>
<ul>
<li>
<span>
<table width="100%" border="0">
<tr>
<td width="30%">
<span class="landingSubmenu"><a href="#">Credit note approval</a></span>
</td>
<td>
<span >Credit Note request form and approval process.</span>
</td>
</tr>
</table>
</span>
</li>
</ul>
</li>
<li>
<span> <span class="gtpointer">Installation</span> </span>
<ul>
<li>
<span>
<table width="100%" border="0">
<tr>
<td width="30%">
<span class="landingSubmenu"><a href="#">Credit note approval</a></span>
</td>
<td>
<span >Credit Note request form and approval process.</span>
</td>
</tr>
</table>
</span>
</li>
<li>
<span>
<table width="100%" border="0">
<tr>
<td width="30%">
<span class="landingSubmenu"><a href="#">Credit And Rebill Note (smartforms)</a></span>
</td>
<td>
<span >Generate and Process a Letter of Guarantee for the customer.</span>
</td>
</tr>
</table>
</span>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
Thanks to All.
For the 1st question:
just use inline-block displayed DIVs instead of TDs, and remove TABLEs and TRs.
Then set width percentage for both DIVs, and vertical-alignment to middle to simulate TDs:
http://jsfiddle.net/bQbzK/
HTML
CSS: