To see an example, please refer to this fiddle:
http://jsfiddle.net/66nLy/12/
I am looking to achieve a similar functionality on a webpage, but using <li>
instead of <div>
.
Here is the HTML code snippet:
<table class="base-table selection-table" width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-top:15px;">
<tr class="evenRow" id="37261">
<td class="question">
<ul class="tabl-head">
<li>Question 1.</li>
<li class="center-align">**Report question issue - QUE37261**</li>
<li class="right-align"><a class="change_ps_question" href="change_practice_sheet_question.php?question_id=37261&practice_sheet_id=3"><label class="bright" style="cursor:pointer;" >Change Question</label></a>
</li>
</ul>
<ul class="options w-auto">
<li><strong>Question:</strong>
Pair of contrasting characters controlling the same trait is called:</li>
<li><strong>Answer:</strong>
<p><b style="font-size:13px;">1.</b> Factors
<br />
</p>
<p><b style="font-size:13px;">2.</b> alleles
<br />
</p>
<p><b style="font-size:13px;">3.</b> alloloci
<br />
</p>
<p><b style="font-size:13px;">4.</b> paramorphs
<br />
</p>
</li>
<li><strong>Correct Answer Option : 2</strong>
</li>
</ul>
</td>
</tr>
</table>
This table contains multiple records, but for simplicity, I have only displayed one record.