CSS replacement for actual table
-
Ok, I think I’ve pretty much got css layout sussed, but ran into a problem today and my brain is fried as it is. I want to layout an actual table in css (ie. one you would use in a word document, not a layout table).
Written in html the table could appear like this:
<table border=”1″>
<tr>
<td>Time</td>
<td>Monday</td>
<td>Tuesday</td>
<td>Wednesday</td>
<td>Thursday</td>
<td>Friday</td>
</tr>
<tr>
<td>Period 1</td>
<td rowspan=”2″>Learn CSS</td>
<td>Learn HTML</td>
<td>Learn XHTML</td>
<td>Learn to read</td>
<td>Learn to write</td>
</tr>
<tr>
<td>Period 2</td>
<td>Learn to ride</td>
<td>learn to drive</td>
<td>Write a book</td>
<td>Drive a Car</td>
</tr>
</table>
what’s the easiest way to lay this out using css – it’s the rowspan giving my the headache. it’s been a long day.
The topic ‘CSS replacement for actual table’ is closed to new replies.