Overflow: auto in Firefox not working the same as in Chrome - html

Depending on where you open this HTML, you will see the vertical scroll bar. In Chrome the table doesn't exceeds 180 pixels it has a height. However, in Firefox it expands and exceeds the 180 pixels it has as height. The div with id detailFee has the style of overflow: auto and the height and width are 100%. Is there any solution so the table in Firefox has the same look as Chrome?
Firefox
Chrome
<style>
#detailFee {
background: window;
height: 100%;
width: 100%;
overflow: auto;
border-style: inset;
border-width: 1;
border-color: lightgray;
box-sizing: border-box;
}
</style>
<table
width="800px"
height="180px"
style="background-color: lightblue; border-collapse: collapse"
>
<tbody>
<tr height="100%">
<td>
<div id="detailFee">
<table
style="height: 100%"
width="100%"
cellspacing="0"
cellpadding="0"
border="1"
>
<thead>
<tr height="19px">
<td
style="width: 15px; flex-flow: column nowrap; display: none"
nowrap=""
align="center"
>
+
</td>
<td
style="width: 15px; flex-flow: column"
nowrap=""
align="center"
>
-
</td>
<td width="60%" nowrap="" align="left">Test</td>
<td width="110px" nowrap="" align="right">Test</td>
<td width="85px" nowrap="" align="right">Test</td>
<td width="85px" nowrap="" align="right">Test</td>
</tr>
</thead>
<tbody>
<tr>
<td
style="display: none"
valign="middle"
nowrap=""
align="center"
>
+
</td>
<td
style="display: table-cell"
valign="middle"
nowrap=""
align="center"
>
Test
</td>
<td nowrap="">Test</td>
</tr>
<tr style="display: table-row">
<td nowrap=""></td>
<td colspan="4" nowrap="">
<table
width="100%"
cellspacing="0"
cellpadding="0"
border="1"
>
<tbody>
<tr>
<td style="display: none" nowrap="" align="center">
+
</td>
<td
style="display: table-cell"
nowrap=""
align="center"
>
Test
</td>
<td width="60%" nowrap="">Test</td>
</tr>
<tr style="display: table-row">
<td nowrap=""></td>
<td colspan="4" nowrap="">
<table
width="100%"
cellspacing="0"
cellpadding="0"
border="1"
>
<tbody>
<tr>
<td
style="display: none"
valign="top"
nowrap=""
align="center"
>
+
</td>
<td
style=""
valign="top"
nowrap=""
align="center"
>
-
</td>
<td width="60%" valign="top">Test</td>
</tr>
<tr style="display: none">
<td nowrap=""></td>
<td colspan="4" nowrap="">
<table
width="100%"
height="100%"
cellspacing="0"
cellpadding="0"
border="1"
>
<tbody>
<tr>
<td nowrap=""> </td>
<td nowrap=""> </td>
<td nowrap=""> </td>
<td width="30%" nowrap="">Test</td>
<td width="30%" nowrap="">Test</td>
<td
width="110px"
nowrap=""
align="right"
>
Total Assessed
</td>
<td
width="85px"
nowrap=""
align="right"
>
Total Paid
</td>
<td
width="85px"
nowrap=""
align="right"
>
Total Due
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr style="display: table-row">
<td nowrap=""></td>
<td colspan="6" nowrap="">Test</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr style="display: table-row">
<td nowrap=""></td>
<td colspan="4" nowrap="">
<table
width="100%"
cellspacing="0"
cellpadding="0"
border="1"
>
<tbody>
<tr>
<td style="display: none" nowrap="" align="center">
+
</td>
<td
style="display: table-cell"
nowrap=""
align="center"
>
Test
</td>
<td width="60%" nowrap="">Test</td>
</tr>
<tr style="display: table-row">
<td nowrap=""></td>
<td colspan="4" nowrap="">
<table
width="100%"
cellspacing="0"
cellpadding="0"
border="1"
>
<tbody>
<tr>
<td
style="display: none"
valign="top"
nowrap=""
align="center"
>
+
</td>
<td
style=""
valign="top"
nowrap=""
align="center"
>
-
</td>
<td width="60%" valign="top">Test</td>
</tr>
<tr style="display: none">
<td nowrap=""></td>
<td colspan="4" nowrap="">
<table
width="100%"
height="100%"
cellspacing="0"
cellpadding="0"
border="1"
>
<tbody>
<tr>
<td nowrap=""> </td>
<td nowrap=""> </td>
<td nowrap=""> </td>
<td width="30%" nowrap="">Test</td>
<td width="30%" nowrap="">Test</td>
<td
width="110px"
nowrap=""
align="right"
>
Total Assessed
</td>
<td
width="85px"
nowrap=""
align="right"
>
Total Paid
</td>
<td
width="85px"
nowrap=""
align="right"
>
Total Due
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr style="display: table-row">
<td nowrap=""></td>
<td colspan="6" nowrap="">Test</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr style="display: table-row">
<td nowrap=""></td>
<td colspan="4" nowrap="">
<table
width="100%"
cellspacing="0"
cellpadding="0"
border="1"
>
<tbody>
<tr>
<td style="display: none" nowrap="" align="center">
+
</td>
<td
style="display: table-cell"
nowrap=""
align="center"
>
Test
</td>
<td width="60%" nowrap="">Test</td>
</tr>
<tr style="display: table-row">
<td nowrap=""></td>
<td colspan="4" nowrap="">
<table
width="100%"
cellspacing="0"
cellpadding="0"
border="1"
>
<tbody>
<tr>
<td
style="display: none"
valign="top"
nowrap=""
align="center"
>
+
</td>
<td
style=""
valign="top"
nowrap=""
align="center"
>
-
</td>
<td width="60%" valign="top">Test</td>
</tr>
<tr style="display: none">
<td nowrap=""></td>
<td colspan="4" nowrap="">
<table
width="100%"
height="100%"
cellspacing="0"
cellpadding="0"
border="1"
>
<tbody>
<tr>
<td nowrap=""> </td>
<td nowrap=""> </td>
<td nowrap=""> </td>
<td width="30%" nowrap="">Test</td>
<td width="30%" nowrap="">Test</td>
<td
width="110px"
nowrap=""
align="right"
>
Total Assessed
</td>
<td
width="85px"
nowrap=""
align="right"
>
Total Paid
</td>
<td
width="85px"
nowrap=""
align="right"
>
Total Due
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr style="display: table-row">
<td nowrap=""></td>
<td colspan="6" nowrap="">Test</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr style="display: table-row">
<td nowrap=""></td>
<td colspan="4" nowrap="">
<table
width="100%"
cellspacing="0"
cellpadding="0"
border="1"
>
<tbody>
<tr>
<td style="display: none" nowrap="" align="center">
+
</td>
<td
style="display: table-cell"
nowrap=""
align="center"
>
Test
</td>
<td width="60%" nowrap="">Test</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr style="display: none">
<td nowrap=""></td>
<td colspan="4" nowrap="">
<table
width="100%"
cellspacing="0"
cellpadding="0"
border="1"
>
<tbody>
<tr>
<td nowrap="" align="center">+</td>
<td style="display: none" nowrap="" align="center">
-
</td>
<td width="60%" nowrap="">Jointly/Severally Fees</td>
<td width="110px" nowrap="" align="right">$0.00</td>
<td width="85px" nowrap="" align="right">$0.00</td>
<td width="85px" nowrap="" align="right">$0.00</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td
style="display: none"
valign="middle"
nowrap=""
align="center"
>
+
</td>
<td
style="display: table-cell"
valign="middle"
nowrap=""
align="center"
>
Test
</td>
</tr>
<tr style="display: none">
<td nowrap=""></td>
<td colspan="4" nowrap="">
<table
width="100%"
cellspacing="0"
cellpadding="0"
border="1"
>
<tbody>
<tr>
<td nowrap="" align="center">+</td>
<td style="display: none" nowrap="" align="center">
-
</td>
<td width="60%" nowrap="">Jointly/Severally Fees</td>
<td width="110px" nowrap="" align="right">$0.00</td>
<td width="85px" nowrap="" align="right">$0.00</td>
<td width="85px" nowrap="" align="right">$0.00</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
</tbody>
</table>

Edit:
Here I have the same result in Chrome, Safari, Opera and Firefox
body{
position :absolute;
}
table{
border-collapse: collapse;
}
#mainContainer{
height:180px;
overflow-y: scroll;
}
#detailFee {
background: window;
height: 100%;
width: 100%;
overflow: auto;
border-style: inset;
border-width: 1;
border-color: lightgray;
box-sizing: border-box;
}
Try to put the main table inside a "mainContainer" div like this...
<div id="mainContainer">
<table
width="800px"
height="180px"
style="background-color: lightblue; border-collapse: collapse"
>
And at the end of your html :
</table>
</div>
</body>
</html>
Have a nice day.

Related

How to exclude table from certain styles

I have a <table> that I am trying to make mobile-friendly with some CSS. However, I do not want this 'mobile-friendly' CSS to apply to all our tables. The CSS should not be applied to tables that have the class no-wrap. All of the tables we use have the class .table2. We also have a lot of nested tables. And these nested tables are the main problem. Here is an example with jsfiddle.
As you can see in the example, the first table has 2 classes; table2 and no-wrap. I do not want to apply the 'mobile-friendly' CSS to tables that have the no-wrap class. So the first example works fine because the CSS is not applied. However, the second table also has the no-wrap class, but I guess because it is nested inside another table (that also has the class table2), it does not look at the :not(.no-wrap) selector and the CSS is applied.
Code for reference:
.table2 {
color: #000000;
width: 100%;
table-layout: fixed;
overflow: hidden;
border-spacing: 10px 5px;
border: 1px solid gray;
}
#media only screen and (max-width: 1024px) {
.track table.table2:not(.no-wrap),
.track .table2:not(.no-wrap) thead,
.track .table2:not(.no-wrap) tbody,
.track .table2:not(.no-wrap) th,
.track .table2:not(.no-wrap) td,
.track .table2:not(.no-wrap) tr {
display: block;
}
.track .table2:not(.no-wrap) tr {
margin: 20px;
}
.track .table2:not(.no-wrap) tr[height] {
height: 0;
}
.track .table2:not(.no-wrap) td {
position: relative;
margin: 5px 0;
}
}
<div class="track">
<table cellspacing="0" cellpadding="0" class="table2 no-wrap">
<tbody>
<tr height="19">
<td width="170"></td>
<td></td>
<td width="80"></td>
<td width="80"></td>
<td width="80"></td>
<td width="80"></td>
<td width="100"></td>
</tr>
<tr>
<td class="trackFormHeaderTitle">Artikel</td>
<td class="trackFormHeaderTitle">Omschrijving</td>
<td class="trackFormHeaderTitle" align="right">Aantal </td>
<td class="trackFormHeaderTitle" align="right">Bruto prijs </td>
<td class="trackFormHeaderTitle" align="right">Netto prijs </td>
<td class="trackFormHeaderTitle" align="right">Kostprijs </td>
<td class="trackFormHeaderTitle"> BTW</td>
</tr>
<tr>
<td bgcolor="#FFFFFF" class="inpAll trackFormBodyCellLink">
<font size="2">BBA</font>
</td>
<td bgcolor="#FFFFFF" class="inpTRB">
<font size="2">Bezoek Bedrijfsarts</font>
</td>
<td bgcolor="#FFFFFF" class="inpTRB" align="right">
<font size="2">1,000</font>
</td>
<td bgcolor="#FFFFFF" class="inpTRB" align="right">
<font size="2">175,00</font>
</td>
<td bgcolor="#FFFFFF" class="inpTRB" align="right">
<font size="2">175,00</font>
</td>
<td bgcolor="#FFFFFF" class="inpTRB" align="right">
<font size="2">100,00</font>
</td>
<td bgcolor="#FFFFFF" class="inpTRB">
<font size="2">Hoog-tarief</font>
</td>
</tr>
<tr>
<td bgcolor="#FFFFFF" class="inpLRB"> </td>
<td bgcolor="#FFFFFF" class="inpRB"> </td>
<td bgcolor="#FFFFFF" class="inpRB" align="right"> </td>
<td bgcolor="#FFFFFF" class="inpRB" align="right"> </td>
<td bgcolor="#FFFFFF" class="inpRB" align="right"> </td>
<td bgcolor="#FFFFFF" class="inpRB" align="right"> </td>
<td bgcolor="#FFFFFF" class="inpRB"> </td>
</tr>
<tr>
<td bgcolor="#FFFFFF" class="inpLRB trackFormBodyCellLink">
<font size="2">REISKOSTEN</font>
</td>
<td bgcolor="#FFFFFF" class="inpRB">
<font size="2">Reiskosten</font>
</td>
<td bgcolor="#FFFFFF" class="inpRB" align="right">
<font size="2">1,000</font>
</td>
<td bgcolor="#FFFFFF" class="inpRB" align="right">
<font size="2">75,00</font>
</td>
<td bgcolor="#FFFFFF" class="inpRB" align="right">
<font size="2">75,00</font>
</td>
<td bgcolor="#FFFFFF" class="inpRB" align="right">
<font size="2">0,00</font>
</td>
<td bgcolor="#FFFFFF" class="inpRB">
<font size="2">Geen</font>
</td>
</tr>
</tbody>
</table>
<div style="margin: 100px 0;">
<hr />
</div>
<table class="table2">
<tr>
<td>
<table cellspacing="0" cellpadding="0" class="table2 no-wrap">
<tbody>
<tr height="19">
<td width="170"></td>
<td></td>
<td width="80"></td>
<td width="80"></td>
<td width="80"></td>
<td width="80"></td>
<td width="100"></td>
</tr>
<tr>
<td class="trackFormHeaderTitle">Artikel</td>
<td class="trackFormHeaderTitle">Omschrijving</td>
<td class="trackFormHeaderTitle" align="right">Aantal </td>
<td class="trackFormHeaderTitle" align="right">Bruto prijs </td>
<td class="trackFormHeaderTitle" align="right">Netto prijs </td>
<td class="trackFormHeaderTitle" align="right">Kostprijs </td>
<td class="trackFormHeaderTitle"> BTW</td>
</tr>
<tr>
<td bgcolor="#FFFFFF" class="inpAll trackFormBodyCellLink">
<font size="2">BBA</font>
</td>
<td bgcolor="#FFFFFF" class="inpTRB">
<font size="2">Bezoek Bedrijfsarts</font>
</td>
<td bgcolor="#FFFFFF" class="inpTRB" align="right">
<font size="2">1,000</font>
</td>
<td bgcolor="#FFFFFF" class="inpTRB" align="right">
<font size="2">175,00</font>
</td>
<td bgcolor="#FFFFFF" class="inpTRB" align="right">
<font size="2">175,00</font>
</td>
<td bgcolor="#FFFFFF" class="inpTRB" align="right">
<font size="2">100,00</font>
</td>
<td bgcolor="#FFFFFF" class="inpTRB">
<font size="2">Hoog-tarief</font>
</td>
</tr>
<tr>
<td bgcolor="#FFFFFF" class="inpLRB"> </td>
<td bgcolor="#FFFFFF" class="inpRB"> </td>
<td bgcolor="#FFFFFF" class="inpRB" align="right"> </td>
<td bgcolor="#FFFFFF" class="inpRB" align="right"> </td>
<td bgcolor="#FFFFFF" class="inpRB" align="right"> </td>
<td bgcolor="#FFFFFF" class="inpRB" align="right"> </td>
<td bgcolor="#FFFFFF" class="inpRB"> </td>
</tr>
<tr>
<td bgcolor="#FFFFFF" class="inpLRB trackFormBodyCellLink">
<font size="2">REISKOSTEN</font>
</td>
<td bgcolor="#FFFFFF" class="inpRB">
<font size="2">Reiskosten</font>
</td>
<td bgcolor="#FFFFFF" class="inpRB" align="right">
<font size="2">1,000</font>
</td>
<td bgcolor="#FFFFFF" class="inpRB" align="right">
<font size="2">75,00</font>
</td>
<td bgcolor="#FFFFFF" class="inpRB" align="right">
<font size="2">75,00</font>
</td>
<td bgcolor="#FFFFFF" class="inpRB" align="right">
<font size="2">0,00</font>
</td>
<td bgcolor="#FFFFFF" class="inpRB">
<font size="2">Geen</font>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</table>
</div>
Solution
Don't use :not() because it's quirks make it unreliable and difficult with nested selectors.
Use an additional class to the other <table>s (ex. .wrap) and make it diametrically oppose .no-wrap.
Do not use a class that both types of <table> share (ie .table2).
Other Problems
<font> is HTML4 not HTML5, use a <span> and apply CSS to it.
Attributes cellspacing, cellpadding, bgcolor, and align are deprecated. Use CSS properties border-spacing, padding, background-color, and text-align.
In the example, there are 2 <table>s with .no-wrap (one of them is nested within another <table>) and 2 <table>s with .wrap (one of them is also nested within another <table>).
.table2 {
color: #000000;
width: 100%;
table-layout: fixed;
overflow: hidden;
border-spacing: 10px 5px;
border: 1px solid gray;
}
tbody > tr:first-of-type {height: 19px}
tr, td {outline: 1px dashed red;}
.wrap {outline: 3px dotted cyan}
.no-wrap {outline: 3px dotted lime}
#media only screen and (max-width: 1024px) {
table.wrap,
table.wrap > :is(thead, tbody, tfoot),
table.wrap > :is(thead, tbody, tfoot) > tr,
table.wrap > :is(thead, tbody, tfoot) > tr > :is(th, td) {display: block}
table.wrap > :is(thead, tbody, tfoot) > tr {margin: 20px}
table.wrap > tbody > tr:first-of-type {height:0}
table.wrap > :is(thead, tbody, tfoot) > tr > td {position:relative;margin:5px 0}
table.no-wrap,
table.no-wrap > :is(thead, tbody, tfoot),
table.no-wrap > :is(thead, tbody, tfoot) > tr,
table.no-wrap > :is(thead, tbody, tfoot) > tr > :is(th, td) {display: default;}
table.no-wrap > :is(thead, tbody, tfoot) > tr {margin: 0;}
table.no-wrap > tbody > tr:first-of-type {height: 19px;}
table.no-wrap > :is(thead, tbody, tfoot) > tr > td {position: static;margin: 0;}
}
<div class="track">
<table class="table2 no-wrap">
<tbody> <tr> <td width="170"></td> <td></td> <td width="80"></td> <td width="80"></td> <td width="80"></td> <td width="80"></td> <td width="100"></td> </tr> <tr> <td>Artikel</td> <td>Omschrijving</td> <td align="right">Aantal </td> <td align="right">Bruto prijs </td> <td align="right">Netto prijs </td> <td align="right">Kostprijs </td> <td> BTW</td> </tr> <tr> <td> <span>BBA</span> </td> <td> <span>Bezoek Bedrijfsarts</span> </td> <td align="right"> <span>1,000</span> </td> <td align="right"> <span>175,00</span> </td> <td align="right"> <span>175,00</span> </td> <td align="right"> <span>100,00</span> </td> <td> <span>Hoog-tarief</span> </td> </tr> <tr> <td> </td> <td> </td> <td align="right"> </td> <td align="right"> </td> <td align="right"> </td> <td align="right"> </td> <td> </td> </tr> <tr> <td> <span>REISKOSTEN</span> </td> <td> <span>Reiskosten</span> </td> <td align="right"> <span>1,000</span> </td> <td align="right"> <span>75,00</span> </td> <td align="right"> <span>75,00</span> </td> <td align="right"> <span>0,00</span> </td> <td> <span>Geen</span> </td> </tr> </tbody> </table> <hr />
<table class="table2"> <tr> <td>
<table class="table2 no-wrap"> <tbody> <tr> <td width="170"></td> <td></td> <td width="80"></td> <td width="80"></td> <td width="80"></td> <td width="80"></td> <td width="100"></td> </tr> <tr> <td>Artikel</td> <td>Omschrijving</td> <td align="right">Aantal </td> <td align="right">Bruto prijs </td> <td align="right">Netto prijs </td> <td align="right">Kostprijs </td> <td> BTW</td> </tr> <tr> <td> <span>BBA</span> </td> <td> <span>Bezoek Bedrijfsarts</span> </td> <td align="right"> <span>1,000</span> </td> <td align="right"> <span>175,00</span> </td> <td align="right"> <span>175,00</span> </td> <td align="right"> <span>100,00</span> </td> <td> <span>Hoog-tarief</span> </td> </tr> <tr> <td> </td> <td> </td> <td align="right"> </td> <td align="right"> </td> <td align="right"> </td> <td align="right"> </td> <td> </td> </tr> <tr> <td> <span>REISKOSTEN</span> </td> <td> <span>Reiskosten</span> </td> <td align="right"> <span>1,000</span> </td> <td align="right"> <span>75,00</span> </td> <td align="right"> <span>75,00</span> </td> <td align="right"> <span>0,00</span> </td> <td> <span>Geen</span> </td> </tr> </tbody> </table> </td> </tr> </table> <hr>
<table class="table2 wrap">
<tbody> <tr> <td width="170"></td> <td></td> <td width="80"></td> <td width="80"></td> <td width="80"></td> <td width="80"></td> <td width="100"></td> </tr> <tr> <td>Artikel</td> <td>Omschrijving</td> <td align="right">Aantal </td> <td align="right">Bruto prijs </td> <td align="right">Netto prijs </td> <td align="right">Kostprijs </td> <td> BTW</td> </tr> <tr> <td> <span>BBA</span> </td> <td> <span>Bezoek Bedrijfsarts</span> </td> <td align="right"> <span>1,000</span> </td> <td align="right"> <span>175,00</span> </td> <td align="right"> <span>175,00</span> </td> <td align="right"> <span>100,00</span> </td> <td> <span>Hoog-tarief</span> </td> </tr> <tr> <td> </td> <td> </td> <td align="right"> </td> <td align="right"> </td> <td align="right"> </td> <td align="right"> </td> <td> </td> </tr> <tr> <td> <span>REISKOSTEN</span> </td> <td> <span>Reiskosten</span> </td> <td align="right"> <span>1,000</span> </td> <td align="right"> <span>75,00</span> </td> <td align="right"> <span>75,00</span> </td> <td align="right"> <span>0,00</span> </td> <td> <span>Geen</span> </td> </tr> </tbody> </table>
<table class="table2"> <tr> <td>
<table class="table2 wrap"> <tbody> <tr> <td width="170"></td> <td></td> <td width="80"></td> <td width="80"></td> <td width="80"></td> <td width="80"></td> <td width="100"></td> </tr> <tr> <td>Artikel</td> <td>Omschrijving</td> <td align="right">Aantal </td> <td align="right">Bruto prijs </td> <td align="right">Netto prijs </td> <td align="right">Kostprijs </td> <td> BTW</td> </tr> <tr> <td> <span>BBA</span> </td> <td> <span>Bezoek Bedrijfsarts</span> </td> <td align="right"> <span>1,000</span> </td> <td align="right"> <span>175,00</span> </td> <td align="right"> <span>175,00</span> </td> <td align="right"> <span>100,00</span> </td> <td> <span>Hoog-tarief</span> </td> </tr> <tr> <td> </td> <td> </td> <td align="right"> </td> <td align="right"> </td> <td align="right"> </td> <td align="right"> </td> <td> </td> </tr> <tr> <td> <span>REISKOSTEN</span> </td> <td> <span>Reiskosten</span> </td> <td align="right"> <span>1,000</span> </td> <td align="right"> <span>75,00</span> </td> <td align="right"> <span>75,00</span> </td> <td align="right"> <span>0,00</span> </td> <td> <span>Geen</span> </td> </tr> </tbody> </table> </td> </tr> </table>
</div>

Extract data from html table with dart

There is a public web page that shows me information within three tables. I want to extract this information, but unfortunately I don't have an API for this, which I could use in my code. I thought about how this could best be solved and came to the conclusion that an analysis of the HTML code is unavoidable. So I would make an http get request and "cut" the data out of the response. One of the tables looks something like this
<table border="3" rules="all" cellpadding="1" cellspacing="1">
<tbody>
<tr>
<td align="center">
<table width="100%">
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td align="center" nowrap="1"><font size="3" face="Arial" color="#000000">
<b>Mo</b>
</font></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td align="center" nowrap="1"><font size="3" face="Arial">
<b>Di</b>
</font></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td align="center" nowrap="1"><font size="3" face="Arial">
<b>Mi</b>
</font></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td align="center" nowrap="1"><font size="3" face="Arial">
<b>Do</b>
</font></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td align="center" nowrap="1"><font size="3" face="Arial">
<b>Fr</b>
</font></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td align="center" nowrap="1"><font size="3" face="Arial">
7:35
</font></td>
</tr>
<tr>
<td align="center" nowrap="1"><font size="3" face="Arial">
8:20
</font></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" rowspan="2" align="center" nowrap="1" bgcolor="#010101">
<table width="100%">
<tbody>
<tr>
<td width="33%" bgcolor="#010101" nowrap="1"><font size="3" face="Arial" color="#FFFFFF">
WSP
</font></td>
<td width="33%" bgcolor="#010101" nowrap="1"><font size="3" face="Arial" color="#FFFFFF">
wü
</font></td>
<td width="33%" bgcolor="#010101" nowrap="1"><font size="3" face="Arial" color="#FFFFFF">
8k
</font></td>
</tr>
<tr>
<td colspan="3" width="33%" bgcolor="#010101" nowrap="1"><font size="3" face="Arial"
color="#FFFFFF">
A213
</font></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
</tr>
<tr>
<td rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td align="center" nowrap="1"><font size="3" face="Arial" color="#000000">
8:25
</font></td>
</tr>
<tr>
<td align="center" nowrap="1"><font size="3" face="Arial">
9:10
</font></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" rowspan="4" align="center" nowrap="1" bgcolor="#80FF80">
<table width="100%">
<tbody>
<tr>
<td width="33%" bgcolor="#80FF80" nowrap="1"><font size="3" face="Arial" color="#000000">
Phy
</font></td>
<td width="33%" bgcolor="#80FF80" nowrap="1"><font size="3" face="Arial" color="#000000">
mp
</font></td>
<td width="33%" bgcolor="#80FF80" nowrap="1"><font size="3" face="Arial" color="#000000">
8k
</font></td>
</tr>
<tr>
<td colspan="3" width="33%" bgcolor="#80FF80" nowrap="1"><font size="3" face="Arial"
color="#000000">
A236
</font></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
</tr>
<tr>
<td rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td align="center" nowrap="1"><font size="3" face="Arial" color="#000000">
9:15
</font></td>
</tr>
<tr>
<td align="center" nowrap="1"><font size="3" face="Arial">
10:00
</font></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
</tr>
<tr>
<td rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td align="center" nowrap="1"><font size="3" face="Arial">
10:20
</font></td>
</tr>
<tr>
<td align="center" nowrap="1"><font size="3" face="Arial">
11:05
</font></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" rowspan="4" align="center" nowrap="1" bgcolor="#8080FF">
<table width="100%">
<tbody>
<tr>
<td width="33%" bgcolor="#8080FF" nowrap="1"><font size="3" face="Arial" color="#000000">
G&P
</font></td>
<td width="33%" bgcolor="#8080FF" nowrap="1"><font size="3" face="Arial" color="#000000">
hn
</font></td>
<td width="33%" bgcolor="#8080FF" nowrap="1"><font size="3" face="Arial" color="#000000">
8k
</font></td>
</tr>
<tr>
<td colspan="3" width="33%" bgcolor="#8080FF" nowrap="1"><font size="3" face="Arial"
color="#000000">
A312
</font></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
</tr>
<tr>
<td rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td align="center" nowrap="1"><font size="3" face="Arial" color="#000000">
11:10
</font></td>
</tr>
<tr>
<td align="center" nowrap="1"><font size="3" face="Arial">
11:55
</font></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
</tr>
<tr>
<td rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td align="center" nowrap="1"><font size="3" face="Arial">
12:00
</font></td>
</tr>
<tr>
<td align="center" nowrap="1"><font size="3" face="Arial">
12:45
</font></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
</tr>
<tr>
<td rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td align="center" nowrap="1"><font size="3" face="Arial">
12:55
</font></td>
</tr>
<tr>
<td align="center" nowrap="1"><font size="3" face="Arial">
13:40
</font></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" rowspan="4" align="center" nowrap="1" bgcolor="#8000FF">
<table width="100%">
<tbody>
<tr>
<td width="33%" bgcolor="#8000FF" nowrap="1"><font size="3" face="Arial" color="#FFFFFF">
Deu
</font></td>
<td width="33%" bgcolor="#8000FF" nowrap="1"><font size="3" face="Arial" color="#FFFFFF">
mu
</font></td>
<td width="33%" bgcolor="#8000FF" nowrap="1"><font size="3" face="Arial" color="#FFFFFF">
8k
</font></td>
</tr>
<tr>
<td colspan="3" width="33%" bgcolor="#8000FF" nowrap="1"><font size="3" face="Arial"
color="#FFFFFF">
A413
</font></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
</tr>
<tr>
<td rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td align="center" nowrap="1"><font size="3" face="Arial" color="#000000">
13:45
</font></td>
</tr>
<tr>
<td align="center" nowrap="1"><font size="3" face="Arial">
14:30
</font></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
</tr>
<tr>
<td colspan="12" rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" rowspan="4" align="center" nowrap="1" bgcolor="#FF8040">
<table width="100%">
<tbody>
<tr>
<td width="33%" bgcolor="#FF8040" nowrap="1"><font size="3" face="Arial" color="#000000">
MatS
</font></td>
<td width="33%" bgcolor="#FF8040" nowrap="1"><font size="3" face="Arial" color="#000000">
rm
</font></td>
<td width="33%" bgcolor="#FF8040" nowrap="1"><font size="3" face="Arial" color="#000000">
8k
</font></td>
</tr>
<tr>
<td colspan="3" width="33%" bgcolor="#FF8040" nowrap="1"><font size="3" face="Arial"
color="#000000">
A202
</font></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
</tr>
<tr>
<td rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td align="center" nowrap="1"><font size="3" face="Arial" color="#000000">
15:35
</font></td>
</tr>
<tr>
<td align="center" nowrap="1"><font size="3" face="Arial">
16:20
</font></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
</tr>
<tr>
<td rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td align="center" nowrap="1"><font size="3" face="Arial">
16:25
</font></td>
</tr>
<tr>
<td align="center" nowrap="1"><font size="3" face="Arial">
17:10
</font></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" rowspan="2" align="center" nowrap="1">
<table width="100%">
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</td>
<td colspan="12" rowspan="2" align="center" nowrap="1" bgcolor="#0000A0">
<table width="100%">
<tbody>
</tbody>
</table>
</td>
</tr>
<tr>
</tr>
</tbody>
</table>
So I have a huge block from which I only want to filter out the following data.
I don't expect a ready-made solution, just a food for thought. I want to solve this problem with Dart and would treat all HTML as a string, whereupon I would cut this string and read the data from the resulting array.

HTML table fit cell height to contents valign top

I am trying to create a table where the left column is pushed top to fit its contents. Note that the right column requires to be height=300.
<table border="1" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
<tr>
<td valign="top" width="65%">
This is my 1st cell
</td>
<td valign="top" width="35%" height="300" rowspan="3" align="right">
This is long cell
</td>
</tr>
<tr>
<td valign="top" width="65%">This is my 2nd cell</td>
</tr>
<tr>
<td valign="top" width="65%">
This is my 3rd cell
</td>
</tr>
</table>
This is what I have come out so far: https://jsfiddle.net/5y33rtm3/1/
Desired outcome:
You can add rowspan="5" for the third row in the left:
<table border="1" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
<tr>
<td valign="top" width="65%">
This is my 1st cell
</td>
<td valign="top" width="35%" height="300" rowspan="7" align="right">
This is long cell
</td>
</tr>
<tr>
<td valign="top" width="65%">This is my 2nd cell</td>
</tr>
<tr>
<td valign="top" width="65%" rowspan="5"> <!-- CHANGED HERE -->
This is my 3rd cell
</td>
</tr>
</table>
or you can add height: 100% to it:
<table border="1" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
<tr>
<td valign="top" width="65%">
This is my 1st cell
</td>
<td valign="top" width="35%" height="300" rowspan="7" align="right">
This is long cell
</td>
</tr>
<tr>
<td valign="top" width="65%">This is my 2nd cell</td>
</tr>
<tr>
<td valign="top" width="65%" style="height: 100%"> <!-- CHANGED HERE -->
This is my 3rd cell
</td>
</tr>
</table>
<table border="1" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
<tr>
<td width="65%">
This is my 1st cell
</td>
<td valign="top" width="35%" height="300" rowspan="3" align="right">
This is long cell
</td>
</tr>
<tr>
<td valign="top" width="65%">This is my 2nd cell</td>
</tr>
<tr>
<td valign="top" style="height:100%" width="65%">
<img src="ant.jpg" style="height:40%;width:40%;" />
</td>
</tr>
</table>

My HTML email does not fit to iPhone screen, how can I fix it?

Specifically, the main header is separate from the imagery and footer of the email, pushed too far left for some reason. However, it works perfectly on all other email clients (See SendinBlue campaign builder preview).
Here is the full code I'm using for the address bar at the top:
<table class="ecxw320" align="center" border="0"
cellpadding="0" cellspacing="0" width="640">
<tbody>
<tr bgcolor="#000000">
<td height="50">
<table align="center" border="0" cellpadding="0"
cellspacing="0">
<tbody>
<tr>
<td>
<table align="center" border="0"
cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="font-family:'Helvetica',
monospace;font-size:12px;line-height:15px;color:#FFFFFF;text-align:center;text-decoration:none;white-space:nowrap;"><a
moz-do-not-send="true"
href="http://partofthekult.com/"
target="_blank"
style="font-family:'Helvetica',
monospace;font-size:12px;line-height:15px;color:#FFFFFF;text-align:center;text-decoration:none;white-space:nowrap;">
</a></td>
</tr>
</tbody>
</table>
</td>
<td style="font-family:'Helvetica',
monospace;font-size:12px;line-height:15px;color:#FFFFFF;text-align:center;text-decoration:none;white-space:nowrap;padding:10px;"><a
moz-do-not-send="true"
href="https://partofthekult.com/collections/tees"
target="_blank"
style="font-family:'Helvetica',
monospace;font-size:15px;line-height:15px;color:#FFFFFF;text-align:center;text-decoration:none;white-space:nowrap;">TEES
</a></td>
<td width="0">
<table align="center" border="0"
cellpadding="0" cellspacing="0"
width="2">
<tbody>
<tr>
</tr>
</tbody>
</table>
</td>
<td style="font-family:'Helvetica',
monospace;font-size:12px;line-height:15px;color:#FFFFFF;text-align:center;text-decoration:none;white-space:nowrap;padding:10px;"><a
moz-do-not-send="true"
href="https://partofthekult.com/collections/tanks"
target="_blank"
style="font-family:'Helvetica',
monospace;font-size:15px;line-height:15px;color:#FFFFFF;text-align:center;text-decoration:none;white-space:nowrap;">TANKS</a></td>
<td class="ecxh" width="0">
<table align="center" border="0"
cellpadding="0" cellspacing="0"
width="2">
<tbody>
<tr>
</tr>
</tbody>
</table>
</td>
<td class="ecxh" style="font-family:'Helvetica',
monospace;font-size:12px;line-height:15px;color:#FFFFFF;text-align:center;text-decoration:none;white-space:nowrap;padding:10px;"><a
moz-do-not-send="true"
href="https://partofthekult.com/collections/accessories"
target="_blank"
style="font-family:'Helvetica',
monospace;font-size:15px;line-height:15px;color:#FFFFFF;text-align:center;text-decoration:none;white-space:nowrap;">ACCESSORIES
</a></td>
<td class="ecxh" width="0">
<table align="center" border="0"
cellpadding="0" cellspacing="0"
width="2">
<tbody>
<tr>
</tr>
</tbody>
</table>
</td>
<td class="ecxh" style="font-family:'Helvetica',
monospace;font-size:12px;line-height:15px;color:#FFFFFF;text-align:center;text-decoration:none;white-space:nowrap;padding:10px;"><a
moz-do-not-send="true"
href="https://partofthekult.com/collections/sale"
target="_blank"
style="font-family:'Helvetica',
monospace;font-size:15px;line-height:15px;color:#FFFFFF;text-align:center;text-decoration:none;white-space:nowrap;">SALE</a></td>
<td class="ecxh" width="0">
<table align="center" border="0"
cellpadding="0" cellspacing="0"
width="2">
<tbody>
<tr>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
Images of how it renders on my iPhone 6s:
First Image
Second Image

Set Numbering <li> to top

Currently I have this output for my <li>
How can I move number 3 to top?
My expected output:
I have tried with these codes, but not success. Anyone can help me solve this problem?
<ol>
<li>Namakan kenderaan malaysia
<br>
<br>
<table width="80%" border="0">
<tbody>
<tr>
<td width="10%"><b>i)</b>
</td>
<td width="90%" style="border-bottom: 1px solid #000000;"> </td>
</tr>
<tr>
<td width="10%"><b>ii)</b>
</td>
<td width="90%" style="border-bottom: 1px solid #000000;"> </td>
</tr>
<tr>
<td width="10%"><b>iii)</b>
</td>
<td width="90%" style="border-bottom: 1px solid #000000;"> </td>
</tr>
<tr>
<td width="10%"><b>iv)</b>
</td>
<td width="90%" style="border-bottom: 1px solid #000000;"> </td>
</tr>
</tbody>
</table>
<br>
</li>
<li>Suatu hari ahmad <span style="text-decoration: underline"> a </span> pokok besar di tepi jalan. Ahmad berlari kerana <span style="text-decoration: underline"> b </span> Ahmad
telah diselamatkan oleh bapanya. Ahmad berasa <span style="text-decoration: underline"> c </span>
<br>
<br>
<table width="80%" border="0">
<tbody>
<tr>
<td width="10%"><b>a)</b>
</td>
<td width="90%" style="border-bottom: 1px solid #000000;"> </td>
</tr>
<tr>
<td width="10%"><b>b)</b>
</td>
<td width="90%" style="border-bottom: 1px solid #000000;"> </td>
</tr>
<tr>
<td width="10%"><b>c)</b>
</td>
<td width="90%" style="border-bottom: 1px solid #000000;"> </td>
</tr>
</tbody>
</table>
<br>
</li>
<li>
<div style="
display: inline-grid;
">
<img class="img-responsive" src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBw8PDw8NDRAODw0NDQ0NDQ0NDQ8NDg0OFREWFhURFRUYHSggGBolGxUVITEhJSkrLi4uFx8zODMsNygtLisBCgoKDg0OFRAQFy0dHR0tLS0rKy0tLS0tKysrKy0tLS0tLS0tLSstKy0tKy8tLS0tLSsrLS0rLi0rLS0tLS0rK//AABEIALEBHAMBEQACEQEDEQH/xAAbAAACAwEBAQAAAAAAAAAAAAABAwACBAUGB//EADYQAAICAQMBBgUCBQMFAAAAAAABAgMRBBIhMQUTQVFhcQYigZGhFDIjQnKxwTNS8Ac1c9Hh/8QAGgEAAwEBAQEAAAAAAAAAAAAAAAECAwQFBv/EAC4RAQEAAgEEAAQDCAMAAAAAAAABAhEDBBIhMRNBUWEFInEUMlKBkaGx8MHR4f/aAAwDAQACEQMRAD8A4qR9a+PHAEIgOACyQgKQEskILJCC+AIcCApASCMQJMAEwAFIRmwRNDXSZZHG2uRjY1laITM7FynwmZ2NJWmuRlY1laq2ZVrD4EVpDESqLZEpMgNqykMtlSkVIm0icjSRnaRKRcidlykVIW1HIehtRsei2q2B7TIG8Ij3nliILJAFkhEKQBZIRLJCCyQAUhEskICATAGmAJAA4ALRRNpnwiRaD4EUzozIsVKZGZFipWiqwjKLlbaZmGUb41sqkY2NZT4yIsaSmKROl7HcLR7ByDQ2rKRWitJnIqRFpE5GkiLSZSKkTsuUitFstyK0NhkNDYNhow3Bo9vFYPbeaKQEskILJABSES6QgKQiWSACAF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-table; */">
</div>
<br>ssasa
<br>
<table width="80%" border="0">
<tbody>
<tr>
<td width="10%"><b>i)</b>
</td>
<td width="90%" style="border-bottom: 1px solid #000000;"> </td>
</tr>
<tr>
<td width="10%"><b>ii)</b>
</td>
<td width="90%" style="border-bottom: 1px solid #000000;"> </td>
</tr>
<tr>
<td width="10%"><b>iii)</b>
</td>
<td width="90%" style="border-bottom: 1px solid #000000;"> </td>
</tr>
<tr>
<td width="10%"><b>iv)</b>
</td>
<td width="90%" style="border-bottom: 1px solid #000000;"> </td>
</tr>
<tr>
<td width="10%"><b>v)</b>
</td>
<td width="90%" style="border-bottom: 1px solid #000000;"> </td>
</tr>
</tbody>
</table>
<br>
</li>
<li>
Apakah kesan jika pagar besi dicat?
<br>
<table style="width: 100%">
<tbody>
<tr>
<td width="5%" valign="top">
<b>A)</b>
</td>
<td width="45%" valign="top">
<p>Pagar itu akan berkilat</p>
</td>
<td width="5%" valign="top">
<b>C)</b>
</td>
<td width="45%" valign="top">
<p>Pagar itu tidak akan menyerap haba</p>
</td>
</tr>
<tr>
<td width="5%" valign="top">
<b>B)</b>
</td>
<td width="45%" valign="top">
<p>Pagar itu akan tahan lebih lama</p>
</td>
<td width="5%" valign="top">
<b>D)</b>
</td>
<td width="45%">
<p>Pagar itu tidak akan menyerap air</p>
</td>
</tr>
</tbody>
</table>
<br>
</li>
<li>
Pilih objek-objek yang boleh diletakkan dalam tong kitar semula berwarna jingga.
<br>
<table style="width: 100%">
<tbody>
<tr>
<td width="5%" valign="top">
<b>A)</b>
</td>
<td width="45%" valign="top">
<p>Cermin tingkap, bateri, pakaian</p>
</td>
<td width="5%" valign="top">
<b>C)</b>
</td>
<td width="45%" valign="top">
<p>Gelas minuman, telefon mudah-alih, tin susu</p>
</td>
</tr>
<tr>
<td width="5%" valign="top">
<b>B)</b>
</td>
<td width="45%" valign="top">
<p>Botol air mineral, tin minuman, baju hujan</p>
</td>
<td width="5%" valign="top">
<b>D)</b>
</td>
<td width="45%">
<p>Periuk tanah liat, spring, suratkhabar</p>
</td>
</tr>
</tbody>
</table>
<br>
</li>
<li>
Manakah objek <strong><em>tidak</em></strong> boleh menyukat jisim?
<br>
<table style="width: 100%">
<tbody>
<tr>
<td width="5%" valign="top">
<b>A)</b>
</td>
<td width="45%" valign="top">
<p>Neraca mampatan</p>
</td>
<td width="5%" valign="top">
<b>C)</b>
</td>
<td width="45%" valign="top">
<p>Neraca tuas</p>
</td>
</tr>
<tr>
<td width="5%" valign="top">
<b>B)</b>
</td>
<td width="45%" valign="top">
<p>Neraca elektronik</p>
</td>
<td width="5%" valign="top">
<b>D)</b>
</td>
<td width="45%">
<p>Jam matahari</p>
</td>
</tr>
</tbody>
</table>
<br>
</li>
<li>
Julia mempunyai 10 m reben. Dia menggunakan 1.5 m daripada reben itu untuk membuat sekuntum bunga.
<br>Berapakah kuntum bunga yang telah dibuatnya jika baki reben itu ialah 1 m?
<br>
<table style="width: 100%">
<tbody>
<tr>
<td width="5%" valign="top">
<b>A)</b>
</td>
<td width="45%" valign="top">
<p>4</p>
</td>
<td width="5%" valign="top">
<b>C)</b>
</td>
<td width="45%" valign="top">
<p>6</p>
</td>
</tr>
<tr>
<td width="5%" valign="top">
<b>B)</b>
</td>
<td width="45%" valign="top">
<p>5</p>
</td>
<td width="5%" valign="top">
<b>D)</b>
</td>
<td width="45%">
<p>7</p>
</td>
</tr>
</tbody>
</table>
<br>
</li>
<li>
Manakah antara berikut sesuai untuk mengukur panjang papan putih?
<br>
<table style="width: 100%">
<tbody>
<tr>
<td width="5%" valign="top">
<b>A)</b>
</td>
<td width="45%" valign="top">
<p>Kaki</p>
</td>
<td width="5%" valign="top">
<b>C)</b>
</td>
<td width="45%" valign="top">
<p>Depa</p>
</td>
</tr>
<tr>
<td width="5%" valign="top">
<b>B)</b>
</td>
<td width="45%" valign="top">
<p>Jengkal</p>
</td>
<td width="5%" valign="top">
<b>D)</b>
</td>
<td width="45%">
<p>Hasta</p>
</td>
</tr>
</tbody>
</table>
<br>
</li>
<li>
Manakah tumbuhan yang melindungi diri daripada dimakan haiwan dengan cara yang sama?
<br>
<table style="width: 100%">
<tbody>
<tr>
<td width="5%" valign="top">
<b>A)</b>
</td>
<td width="45%" valign="top">
<p>Pokok keladi, pokok tomato, pokok durian</p>
</td>
<td width="5%" valign="top">
<b>C)</b>
</td>
<td width="45%" valign="top">
<p>Pokok getah, pokok betik, pokok nangka</p>
</td>
</tr>
<tr>
<td width="5%" valign="top">
<b>B)</b>
</td>
<td width="45%" valign="top">
<p>Pokok mangga, pokok pisang, pokok jagung</p>
</td>
<td width="5%" valign="top">
<b>D)</b>
</td>
<td width="45%">
<p>Pokok bunga raya, pokok bunga ros, pokok nanas</p>
</td>
</tr>
</tbody>
</table>
<br>
</li>
<li>
Manakah antara berikut <strong><em>bukan</em></strong> inferens bagi manusia untuk membiak?
<br>
<table style="width: 100%">
<tbody>
<tr>
<td width="5%" valign="top">
<b>A)</b>
</td>
<td width="45%" valign="top">
<p>Untuk memastikan kemandirian spesisnya</p>
</td>
<td width="5%" valign="top">
<b>C)</b>
</td>
<td width="45%" valign="top">
<p>Untuk mengekalkan bilangan mereka</p>
</td>
</tr>
<tr>
<td width="5%" valign="top">
<b>B)</b>
</td>
<td width="45%" valign="top">
<p>Untuk mengekalkan keseimbangan alam</p>
</td>
<td width="5%" valign="top">
<b>D)</b>
</td>
<td width="45%">
<p>Untuk menambah bilangan mereka</p>
</td>
</tr>
</tbody>
</table>
<br>
</li>
<li>
Bagaimanakah nikotin dalam asap rokok menjejaskan kesihatan manusia?
<br>
<table style="width: 100%">
<tbody>
<tr>
<td width="5%" valign="top">
<b>A)</b>
</td>
<td width="45%" valign="top">
<p>Memusnahkan sel-sel dalam paru-paru.</p>
</td>
<td width="5%" valign="top">
<b>C)</b>
</td>
<td width="45%" valign="top">
<p>Menyebabkan barah tekak dan paru-paru.</p>
</td>
</tr>
<tr>
<td width="5%" valign="top">
<b>B)</b>
</td>
<td width="45%" valign="top">
<p>Memusnahkan sel darah merah.</p>
</td>
<td width="5%" valign="top">
<b>D)</b>
</td>
<td width="45%">
<p>Menyebabkan lelah dan bronkitis.</p>
</td>
</tr>
</tbody>
</table>
<br>
</li>
<li>
Pilih tujuan penyiasatan di mana ikan diletakkan dalam tangki bertutup.
<br>
<table style="width: 100%">
<tbody>
<tr>
<td width="5%" valign="top">
<b>A)</b>
</td>
<td width="45%" valign="top">
<p>Untuk menunjukkan bahawa air ialah keperluan asas ikan.</p>
</td>
<td width="5%" valign="top">
<b>C)</b>
</td>
<td width="45%" valign="top">
<p>Untuk menunjukkan bahawa ikan boleh disimpan dalam tangki bertutup.</p>
</td>
</tr>
<tr>
<td width="5%" valign="top">
<b>B)</b>
</td>
<td width="45%" valign="top">
<p>Untuk menunjukkan bahawa udara ialah keperluan asas ikan.</p>
</td>
<td width="5%" valign="top">
<b>D)</b>
</td>
<td width="45%">
<p>Untuk menyiasat sama ada ikan memerlukan makanan untuk terus hidup.</p>
</td>
</tr>
</tbody>
</table>
<br>
</li>
<li>
Mengapakah manusia purba tinggal dalam gua?
<br>
<table style="width: 100%">
<tbody>
<tr>
<td width="5%" valign="top">
<b>A)</b>
</td>
<td width="45%" valign="top">
<p>Untuk mendapat perlindungan daripada hujan, panas matahari, dan musuh.</p>
</td>
<td width="5%" valign="top">
<b>C)</b>
</td>
<td width="45%" valign="top">
<p>Mereka suka tinggal dalam gua.</p>
</td>
</tr>
<tr>
<td width="5%" valign="top">
<b>B)</b>
</td>
<td width="45%" valign="top">
<p>Untuk bersembunyi daripada hujan dan panas matahari.</p>
</td>
<td width="5%" valign="top">
<b>D)</b>
</td>
<td width="45%">
<p>Untuk mengelakkan musuh.</p>
</td>
</tr>
</tbody>
</table>
<br>
</li>
</ol>
Please refer to my fiddle
Try this:
li > div {
display:inline-block; /* not inline-grid */
vertical-align: top;
}
JSfiddle Demo
.. display: block; makes the element somewhat: 100% width and not act like an list-item so appears out of list. There are more elegant solutions.
i use the gt-selector > to be sure only the direct children are affected.
li > img {
display: block;
}
<ol>
<li>
<img src="http://lorempixel.com/400/200">Whatever you say, don't do it!</li>
<li>____</li>
<li>____</li>
<li>____</li>
<li>____</li>
</ol>