I need the second td in my table to appear on top of the first one when I resize the screen.
@media screen and (min-width: 200px) and (max-width: 872px) {
td :nth-child(1) {display:bottom}
td :nth-child(2) {display:top}
}
<table border="0" cellspacing="0" cellpadding="0>
<tr>
<td>
dhklsadhfjl;skdjflskdjfzx,nc,zmxnv;lkjdfsd;lakfjas,nxc
</td>
<td><div class="w3-content w3-section" style="max-width:500px">
<img class="mySlides w3-animate-fading" src="1ma63N35/1.jpg" style="width:100%">
<img class="mySlides w3-animate-fading" src="1ma63N35/2.jpg" style="width:100%">
<img class="mySlides w3-animate-fading" src="1ma63N35/3.jpg" style="width:100%">
<img class="mySlides w3-animate-fading" src="1ma63N35/4.jpg" style="width:100%">
<img class="mySlides w3-animate-fading" src="1ma63N35/5.jpg" style="width:100%">
</div></td>
</tr>
</table
css
@media screen and (min-width: 200px) and (max-width: 872px) { td :nth-child(1) {display:bottom}
td :nth-child(2) {display:top}
}