I am new to stack overflow and I'm trying to make a mobile webpage from the existing desktop version webpage someone else created. Basically, I have to use same webpage for both mobile and desktop. For this specific page with table, I am trying to change the pattern of table for mobile using external style sheet.I had attached the html skeleton and css with this post. Initially, there is only one row with two s. I want to bring ".td2" to new in next line. I tried a basic table in which I was able to bring down all converted to tr worked but in this case, second containing a table is making me hard. I tried all the way I could. I will be helpful if someone help me.
tr{
display:table;
width:100%;
}
.lfttbl .td1, .td2{
display:table-row;
border-bottom: solid 1px #2b9ed5 !important;
}
<table class="out">
<tr><td>
<table class="outtbl">
<tr>
<td>
<table class="lfttbl">
<tr>
<td class= td1>
<p> hihi hii
</td>
<td class= td2>
<table class = rttbl"">
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
There are a lot of bugs in your code:
<p>
not closed!Going ahead with your layout, I was able to make these corrections to make it work in CSS.