I have converted some pages over from using tables to using DIV tags so that I can dynamically sort the data.
I'm having trouble aligning text in a DIV...I have no idea how to align the text so that its left justified like a HTML table.
Everything works fine, but I'm using 4 DIV tags for each row of data, which is ok when I'm only showing 300-400 rows of data. Things get slow once it gets to around 1000 rows... 4 DIV for each row = 4 x 1000 = 4000 DIV tags to move around. I'd like to reduce the DIV tags to 1000 (1 per row) to speed things up.
Is it a best practice to use 4 DIV tags to keep the text aligned? Or should I use one DIV tag and align the text some other way?
SAMPLE code for 2 rows...
<DIV id="1_Name" style="top:25px;left:100px">Steve</DIV>
<DIV id="1_Address" style="top:25px;left:200px">Martin</DIV>
<DIV id="1_Phone" style="top:25px;left:300px">908 444 - 5555</DIV>
<DIV id="1_Age" style="top:25px;left:400px">37</DIV>
<DIV id="2_Name" style="top:50px;left:100px">Jon</DIV>
<DIV id="2_Address" style="top:50px;left:200px">Wallace</DIV>
<DIV id="2_Phone" style="top:50px;left:300px">949 444 - 5555</DIV>
<DIV id="2_Age" style="top:50px;left:400px"> 29</DIV>



Reply With Quote
....but it does prove you know what you are talking about 
Bookmarks