javascript - How to display the tables one next to the other -


code

$(function() {   var dmjson = "data.json";    $.getjson(dmjson, function(data) {     $.each(data.records, function(i, f) {       var $table = "<table border=5></br><tbody><tr>"         + "<td>" + f.clue + "</td></tr>"         + "<tr><td>" + f.answer + "</td></tr>"         + "<tr><td>" + f.status + "</td></tr>"         + "<tr><td> " + f.views + "</td></tr>"         + "</tbody></table>";        $("#entrydata").append($table)     });   }); }); 

with code dynamically created tables displaying 1 below other want them displayed 1 next other.

how solve this? solution appreciated.

as table block level elements aligned them next each other can choose display:inline-table or can choose float:left both tables. , parents items must have use clear fix method remove floating.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -