I’m not sure of this…
but I believe that the sandman might have hit me over the head with the “stupid-stick” last night…
because I’ve been spinning my wheels for well over an hour trying to figure something out.
Here is the deal:
I have a <table> ๐ฎ and I am trying to replicate it using CSS.
I understand that <div> is a block element (which forces a line break after it is closed)…
so… it would sorta be the equivalent of the <tr> tag (right?).
Okay (supposing that I [I]am
then the <span> tag could be considered the equivalent to the <td> tag (sorta? since it is an inline element?).
So anyway…
I tried all that (substituting as mentioned) and styled the <span> tags.
But… I could not get the WIDTH to work ?
[I]EDIT: I guess I should mention that it works in IE5.0 (I didn’t test any other IE versions)… but it doesn’t work in Netscape7.0 and Opera6.02 (sorry about that. I only just now tested it in IE. But still :rolleyes: )
Now…
before I get the usual link to the W3 ? …
let me just say that I already went there ๐ฎ (no… seriously… I [I]did
Oddly enough… the example at the W3 (for <span> and <div>) actually uses a <table> (oh-boy… just my luck :rolleyes: lol)
Anyway…
I’m stuck ?
So here is the <table> that I am trying to re-create using CSS.
Can it be done?
And if so… how big [I]was
(maybe I should start wearing a helmet to bed :rolleyes: )
So… who’s got game?
thanks…
? k
[COLOR=NAVY]
<table border=”1″>
<tr>
<td width=”150px”>Row 1 – Column 1</td>
<td width=”150px”>Row 1 – Column 2</td>
<td width=”150px”>Row 1 – Column 3</td>
<td width=”150px”>Row 1 – Column 4</td>
</tr>
<tr>
<td colspan=”2″>Row 2 – Column 1 & 2</td>
<td>Row 2 – Column 3</td>
<td>Row 2 – Column 4</td>
</tr>
<tr>
<td colspan=”3″>Row 3 – Column 1 & 2 & 3</td>
<td>Row 3 – Column 4</td>
</tr>
<tr>
<td colspan=”4″>Row 4 – Column 1 & 2 & 3 & 4</td>
</tr>
</table>