Hello, I was wondering if somebody could help me to finish this small project I’m working on .
This is what my table is supposed to look like, but I cannot figure out how to include the Gas Giants and Ice Giants headers into the table without throwing off the entire format and structure. Any help would be greatly appreciated.
Thank you
You will need to create enough columns so that the gas giants
and ice giants
have their own column. You’d then need to use the col-span
attribute to adjust it. I’m just trying to give a hint, but if you need more help, just ask!
That makes sense and ive been trying to accomplish this with no joy. I tried to post my code from vs code here but it did not post correctly so ive only attached the head code. If you need to see anymore code please advise me on how to do it effectively ha ha, I am brand new to all of this.
Thank you
Name
Mass(10
24 kg
Diameter(km)
Density(km/m
3
Gravity(m/s
2
To post your code in the forums, see this topic.
ok, i think i understood that
<thead>
<tr>
<th></th>
<th>Name</th>
<th>Mass(10<sup>24</sup> kg</th>
<th>Diameter(km)</th>
<th>Density(km/m<sup>3</sup></th>
<th>Gravity(m/s<sup>2</sup></th>
</tr>
</thead>
<tbody>
<tr>
<th rowspan="4">Terrestrial Planets</th>
<th>Mercury</th>
<td>0.330</td>
<td>4.879</td>
<td>5427</td>
<td>3.7</td>
<tr>
<th>Venus</th>
<td>4.87</td>
<td>12,104</td>
<td>5423</td>
<td>8.9</td>
</tr>
<tr>
<th>Earth</th>
<td>5.97</td>
<td>12,756</td>
<td>5514</td>
<td>9.8</td>
</tr>
<tr>
<th>Mars</th>
<td>0.624</td>
<td>6,792</td>
<td>3933</td>
<td>3.7</td>
</tr>
<tr>
<th rowspan="4" colspan="">Jovian Planets</th>
<th>Jupiter</th>
<td>1898</td>
<td>142,984</td>
<td>1326</td>
<td>23.1</td>
</tr>
Never mind, I got there in the end, definitely did not do it very efficiently but the finished product looks the way it is supposed to.
1 Like
Ok, sorry I couldn’t help more!