
Originally Posted by
pernes
Hi I am trying to remove a 2 column table and replace it with a 2 column list, but I can't get it to display properly. I also need to be able to add a header between the list to split up th information for monthly purposes. Copy of page I am trying to change:
http://www.wealden.gov.uk/Council/Me...006/index.aspx
Don't. It's tabular data, so it should be marked up using a table. You can drastically improve the structure, though:
HTML Code:
<table>
<tbody id="october">
<tr>
<th colspan="3" scope="rowgroup">October</th>
</tr>
<tr>
<td>062</td>
<td><a href="062DisabilitySurvey.aspx">Help us improve our services</a></td>
<td>06 October</td>
</tr>
</tbody>
<tbody id="september">
<tr>
<th colspan="3" scope="rowgroup">September</th>
</tr>
<tr>
<td>061</td>
<td><a href="061LotteryRecognition.aspx">Lottery Recognition For Wealden’s Hidden Talents</a></td>
<td>29 September</td>
</tr>
<tr>
<td>060</td>
<td><a href="60FraudulentClaim.aspx">Fraudulent claimant found out</a></td>
<td>25 September</td>
</tr>
<!-- ... -->
</tbody>
</table>
The only changes to be made to that should be via CSS.
I hope, during the rewrite, you're planning on getting rid of things like:
Code:
<p style="margin-top: 0; margin-bottom: 0;"> </p>
Vertical separation should be acheived using margins, and empty (including whitespace-only) paragraphs and similar elements are very bad form. In-line style attributes should be avoided, too.
ul.left {
float: left;
width: 550px;
Dimensions for elements containing text should not usually be defined using pixel lengths. Such elements won't scale at different font sizes, which tends to lead to rigid, fragile layouts. Use em lengths, instead. An exception is when images are involved and clipping is undesirable, though be careful not to make the document too wide.
list-style-position: outside;
list-style-type: none;
position: relative;
list-style-image: none;
The declaration:
would have been simpler.
Hope that helps,
Mike
Bookmarks