简体   繁体   中英

Right Table Row to Go Below Left Row

I want td on the right (pagination buttons) to go Below left td (buttons) when there isn't enough space.( small screens).

Is it doable ?

<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
<tr valign="bottom">
        <td class="smallfont"> "Buttons on Left </td>

    <td align="$stylevar[right]"> "Page navigation Buttons on Right </td>

</tr>
</table>

Add an Extra column for the table and hide for desktop.while going to mobile ,hide the fist column and show the third column

  .hide-for-desktop{ display:none; } .@media screen and (max-width: 500px) { table td{ display:block; width:100%; } .hide-for-desktop{ display:block } .hide-for-mobile{ display:none !important; } } 
 <table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px"> <tr valign="bottom"> <td class="smallfont hide-for-mobile"> "Buttons on Left </td> <td align="$stylevar[right]"> "Page navigation Buttons on Right </td> <td class="smallfont hide-for-desktop"> "Buttons on Left </td> </tr> </table> 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM