Dynamically moving table cells when window changes size

329
January 22, 2017, at 03:59 AM

I have a script that displays rows and columns and at the moment I have the follwoing code which has a variable to limit the number of columns in each row.

$Limit2 = 18;
$Count2 = 0;
if($Count2 < $Limit2) {
if($Count2 == 0) {
    echo "<tr>";
    }
        echo "<td><a href='test.php?Room=$RoomNo' target='_self'>$RoomNo2</a></td>";
} else {
    $Count2 = 0;
    echo "</tr><tr><td><a href='test.php?Room=$RoomNo' target='_self'>$RoomNo2</a></td>";
}
$Count2++;
echo "</tr>";
}

I would like to dispence with the way I am doing this and try and replace it with code that would dynamically create/move any columns that don't fit the window size onto a new row/line of columns.

I have Google this but can not find any examples or answers to this issue.

Can anyone point me in the right direction.

Many thanks in advance for your time.

READ ALSO
Force Buffering in whole video while Paused

Force Buffering in whole video while Paused

I want to make the JWPlayer to buffer whole video while in "paused" state

234
Item not aligning to center - LightGallery and Isotope

Item not aligning to center - LightGallery and Isotope

I'm trying to create a centered alignment for the items of the LightGallery, I tried many CSS properties but no use, I even tried to do it with Isotope itselfNow the thing is I've to do this in css but Dont

341
cut and paste html to other element

cut and paste html to other element

I need cut and paste text with all tags inside from main span to label element in every p tag

362
How to make the label next to an input tag equal the placeholder

How to make the label next to an input tag equal the placeholder

I was just trying to figure out how to imitate the input's placeholder in the nearest label tagjQuery is the way of course

274